Hi Tim,

Finally my big chance to help someone. This is what it's all about. You
learn and pass it on. 

The list isn't very active maybe i can respond before someone else does....


 
>> How do I pass arguments to another script?
>> Haven't had much success with the /args
>> refinement.
>> I've written two scripts. One "do's" the
>> other as follows:
>> ;CALLING script
>> REBOL [
>>     Title: "testload.r (loading another file)"
>>     Date:   21-Apr-2000
>>     Author: ["newbie"]
>> ]
>> do %loadtest.r
>> ;CALLED script
>> REBOL [
>>     Title: "loadtest.r loaded from testload.r"
>>     Date:   21-Apr-2000
>>     Author: ["newbie"]
>> ]
>> print "in load test"
>> print ["Command Line Arg: " system/script/args]

>> ;I would like to pass one or more arguments to
>> ;loadtest.r. What would be the correct way to do
>> ;it?

>> Thanks to all!! :>) tim


The calling script would call the called script with:

do/args loadtest.r x

The called script would pick up x via:

filearg: system/script/args


Mike.


Reply via email to