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

[REBOL] Re: problem with system/script/args/1

From: arolls:bigpond:au at: 3-Sep-2001 0:05

The problem is that when you launch the rebol program by its filename only (egg.r test) the argument "test" does not get passed in. If you issue on the command line this instead: C:> path\to\rebol.exe egg.r test then you will see system/script/args filled in properly. I think it's something to do with the file association. Win2k sees the egg.r file, sees that it is a rebol script by looking at the extension, then launches rebol to run it. But it doesn't also pass any further arguments to it. I can't see a way in the windows file types settings to specify command line arguments. So I think you must specify the rebol.exe.