![[About]](e:\os2httpd_1.3.2\htdocs\rexxtipsntricks\about.gif)
![[Toc]](e:\os2httpd_1.3.2\htdocs\rexxtipsntricks\toc.gif)
0.9b (c) 1995 Peter Childs
Be aware that the strings %0 ... %9, when used with OS/2 commands in a REXX program, are replaced by the CMD.EXE with the name of the program (%0) and the parameters (%1 ... %9). Example:
/* */
/* The lineout statement prints */
/* %0 %1 %2 %3 */
/* to the screen */
call LineOut , "%0 %1 %2 %3"
/* The ECHO command prints */
/* - the name of the CMD (%0) */
/* - and the parameter 1 to 3 (%1 ... %3) */
/* to the screen */
'@ECHO %0 %1 %2 %3'
The same is true for the names of environment variables enclosed in % used with OS/2 commands.
(see the sections Get the invocation syntax, Get the name of the MAIN program called, and Get the parameters as seen by CMD.EXE for usage of this feature)
Inf-HTML End Run - Successful