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

[REBOL] Re: Passing arguments to scripts in Windows?

From: jeff:rebol at: 22-Jun-2001 11:18

Howdy, Terry:
> It was this article that got me inspired. But it seems to > Unix based? The examples don't work for me on my win2k > machine.
Here's how you can bundle a .bat file and REBOL script together: ;-- FILE: c:\bin\tst.bat ------------------------------ @echo off c:\bin\rebol.exe -s c:\bin\tst.bat %1 %2 %3 %4 %5 %6 %7 GOTO :EOF REBOL [] print [ "Args:" mold system/options/args newline mold system/script/args ] halt ;----------------------------------------------------- I don't know bat syntax for sending "ALL of the args", and I don't know if there is as I've seen the above before a number of times. You can also use cygnus bash shell too! :) -jeff