
Getting cmd file name - OS/2 REXX
parse source foo.
Foo then contains half-dozen words the first of which ( seem to remember) is the
filename. Check it out.
______________________________ Reply Separator _________________________________
Subject: Getting cmd file name - OS/2 REXX
Date: 2/21/95 9:18 AM
Hi there,
Anyone know of a way of determining the filename of the REXX
script being executed. ie. have a script determine its _own_
filename?
In C or similar, the 'zero-th' command argument is the command
used to invoke the current process, but ARG(0) is not defined
in REXX, and ARG(1) is the first _parameter_.
Any suggestions?
Regards,
Paul Gallagher
--------------------------------------------------------------
Desktop Computing Support - Computer Services Group
BHP Research - Melbourne Laboratories
245 Wellington Rd, Mulgrave, 3170, AUSTRALIA
Standard disclaimer: these are personal opinions.
"Watch the turtle. He only moves forward by sticking his
neck out." - unknown, as quoted by Louis Vincent Gerstner
==============================================================