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

Command line passing values

 [1/2] from: John::Harbaugh::capmetro::org at: 24-Apr-2003 15:44


This command line runs from the explorer URL address line, but how would I enter it from the DOS command line. SEND_FILE.R?filename=d1&email=d2 The syntax fails from the Windows 2000 DOS prompt Thanks! John

 [2/2] from: antonr:iinet:au at: 26-Apr-2003 15:05


Open rebol console and type USAGE:
>> usage
The command line usage is: REBOL <options> <script> <arguments> All fields are optional. Supported options are: --cgi (-c) Check for CGI input --do expr Evaluate expression --link url Connect to Link --help (-?) Display this usage information --nowindow (-w) Do not op...... You could either pass it in the --do option expression, or in the arguments folowing the script name. If you use <arguments>, then once inside your script, access them with system/options/args and/or system/script/args. Here's a simple script that uses command line arguments: http://www.lexicon.net/anton/rebol/util/remind.r Anton Rolls.