PPWIZARD Manual
[Bottom][Contents][Search][Prev]: AddOutputFileToDependancyList()[Next]: AsIs()

AddressCmd()

This is a rexx function provided by PPWIZARD. This routine (like all PPWIZARD extensions) can be used with any operating system supported by PPWIZARD.

This routine will pass the command that you specify to the operating system's command processor. The command will by default be logged when debug is on. This is a major reason why you should use this call.

If your command produces some files as output or you create some by redirection you can specify the names of the files as parameter 2 onwards and these will be dumped when debug is on

Under OS/2 if the command to be executed is a rexx batch file you should preceed the command with "CMD.EXE /c" or the command will fail. If you don't know what the command is you should preceed all commands with that string to play safe.

Stupid Example

This example shows a directory commands output going into one file and any error messages into another. If debug is on the contents of both files as well as the return code will be dumped.

    #evaluate "" ^call AddressCmd "dir /od >dirlist.out 2>error.out", "dirlist.out", "error.out"^
    


[Top][Contents][Search][Prev]: AddOutputFileToDependancyList()[Next]: AsIs()

PPWIZARD Manual
My whole website and this manual itself was developed using PPWIZARD (free preprocessor written by Dennis Bareis)
Wednesday October 04 2000 at 5:05pm