![[Toc]](../../toc.gif)
![[Index]](/idx.gif)
Using %0 ... %9 with OS/2 commands
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 or Get the
parameters as seen by CMD.EXE - 2 - for usage of this feature)
Created using Inf-PHP v.2 (c) 2003 Yuri Prokushev
Created using Inf-HTML v.0.9b (c) 1995 Peter Childs