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

[REBOL] Re: Windows: Shortcut to scripts

From: robert:muench:robertmuench at: 9-Oct-2001 19:34

> -----Original Message----- > From: [rebol-bounce--rebol--com] [mailto:[rebol-bounce--rebol--com]]On Behalf Of > Gregg Irwin > Sent: Monday, October 08, 2001 5:59 PM > To: [rebol-list--rebol--com] > Subject: [REBOL] Re: Windows: Shortcut to scripts > << Just to be sure I understand it correctly. I'm adding the start-in > directory as script-argument, right? So I have: rebol.exe script arguments > >> > > Correct.
Hi, there was only one quirk. It's much better to use system/options/args than system/script/args, as the first returns a block of the parameters given. Than it's easy to check if the first parameter is a directory and make a change-dir. Otherwise you would have to handle a string. Robert