Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: can one get commandline arguments to a rebol script

From: anton:lexicon at: 10-Apr-2002 21:37

Doing another script from an already running rebol script:
>> write %arg-test.r {rebol[] system/script/args} >> do/args %arg-test.r "I don't want to argue"
== "I don't want to argue"
>> delete %arg-test.r ; clean up >From Windows 2000 console:
D:\...\Rebol\View\rebol.exe Remind.r "Bin night" "Put bin out" Where the Remind.r script is in the current directory. (You can put the full path to the script if you like) The Remind.r script gets the arguments like this (I recommend this way.) args: any [ system/options/args to-block system/script/args ] You can get the remind.r script here: http://anton.idatam.com.au/rebol/util/remind.r Anton.