Spawns a childprocess to execute a given command.
NOTE: No keyboard input can be directed to the spawned child process unless a new Command window has been created.
Noshell If present and nonzero, specifies that command should execute directly as a child process without an intervening shell process. In this case, command must be specified as a string in which the first element is the name of the command to execute and the following tokens are the parameters to be passed to the command. The command that is executed with the Noshell option cannot be a command that itself creates a shell, such as
dir
. Noshell is useful when performing many spawned operations from a program and speed is a primary concern. Since no shell is present, wildcard characters are not expanded, and other tasks normally performed by the shell do not occur.
Nowait If set, causes the calling process to continue executing in parallel with the subprocess. Otherwise, the calling process waits until the subprocess completes.
SPAWN,'dir'
For background information, see Chapter 1, Accessing the Operating System, in the PV-WAVE GUI Application Developer's Guide.