Arc Forumnew | comments | leaders | submitlogin
Executing files in windows
2 points by Benben 3913 days ago | 4 comments
hi, i'm completely new to arc and to programming in general. i setting up arc to follow trough with the tutorial and i got the command prompt working. what i can't figure out is how to write a file .arc in an editor, then have the console execute said file. how do i do this? as it says in the title, i'm running windows 7.

thanks, ben



3 points by akkartik 3912 days ago | link

I think that should be platform-independent:

  arc> (load "foo.arc")
Am I misunderstanding your question?

(Sorry about the delay in noticing your question.)

-----

2 points by zck 3911 days ago | link

This should work as long as foo.arc is in the same directory you're running Arc out of.

If your file is somewhere else, you'll have to specify the full path to it (warning: untested):

  arc> (load "C:\\Users\\Benben\\Documents\\foo.arc")

-----

2 points by Benben 3909 days ago | link

i got the syntax wrong, now it works. thanks

-----

1 point by akkartik 3909 days ago | link

Great! Keep asking us questions as you do more learning.

-----