Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Procomm Command line arguments

Status
Not open for further replies.

dglennstep

Programmer
Jul 26, 2002
1
US
I am trying to automate a script that transfers a file to
an ftp site when a certain event happens on our
internal intranet. The file names are not constant, so
I need to send the file name as a command line
argument to my ASPECT script. I have no
documentation other than the on-line ASPECT help
and am having trouble determining how command line
arguments are used. Do I need to write a function or
procedure that will capture the file name from the
command line so I can do something like:

sendfile ASCII FILENAME

or is there a simpler way?
 
You can pass variables to Procomm Plus via the command line used to start the application. For example, the command line "C:\Program Files\Symantec\Procomm Plus\Programs\PW5.exe myscript.wax test" will launch Procomm Plus, execute the script myscript.wax and place the word test in the predefined global string variable s0. Up to 10 values may be passed in. The values will be contained in the global strings s0 through s9, and the number of passed variables will be placed in the predefined global integer i0. Your script can then use the atoi, atol, or atof commands to convert the string values to integers, longs, or floats, if necessary.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top