PMCMD
[/?]
[/Q/S]
[/C|/K]
[/ONETAIL[+|-]]
[/AUTOSTARTPM[+|-]]
[/AUTOSTARTVDM[+|-]]
[commands]
/?/Q/C/K/ONETAIL/AUTOSTARTVDM/AUTOSTARTPMNote: All options must precede any other arguments on the command line. The first non-option word on the command line will cause option processing to finish.
An instance of the 32-bit Command Interpreter is started with the PMCMD command.
The command interpreter first processes the contents of the CMD_PMCMD_INIT environment variable, if it has inherited one, as if it were a command tail, then it processes all of the command tails that have been passed to it.
If non-option arguments are supplied, they are treated as a command line to be executed. For compatibility with the 16-bit CMD supplied with IBM OS/2, if the first non-whitespace character in the command line is a pair of quotation marks, both it and the last quotation mark character on the line (if any) will be removed before the command line is executed.
Once these commands have been executed, the command interpreter by default enters interactive mode, unless the /C option has been specified.
The return code from the command interpreter is the return code from the last command to be run. If the /C option is used, this will be the return code from the command given in the arguments. This is different from the 16-bit CMD supplied with IBM OS/2, which usually, but not always, returns the code of the last relevant system error generated when running (or trying to invoke) the command.
In interactive mode, the PMCMD command allows text to be entered into a combobox window. When the ENTER key is pressed, it treats the text of the combobox window as a command line to be executed which it then executes, displaying its standard output and standard error in an output window.
To exit interactive mode, and thereby terminate the command interpreter process, use the built-in EXIT command.