Download script documentation
Transcript
Chapter 4 Function Reference 3. windows\SYSTEM32. windows is the location of the Windows directory. 4. windows\SYSTEM 5. The windows directory 6. The directories listed in the PATH environment variable Linux Only: If an incomplete path is specified, the process executable will be searched in the directories specified in the PATH environment variable. Argument 2 String array containing one or more of the options defined in the following table: Option name Description ‘wait’ If specified, the function will not return until the called process has exited. ‘command’ Windows only: Calls OS command line interpreter to execute the command supplied. This can be used to execute system commands such as ‘copy’ and ‘move’. Ignored under Linux Return Value Returns a real array of length 2 as defined below: Index Description 0 Process exit code. If the process is still running when this function returns, this value will be 259. 1 Error code as follows 0 Process launched successfully 1 Command processor not found. (command options specified 2 Cannot find file 3 File is not executable 4 Access denied 5 Process launch failed 6 Unknown failure 291