CreateProcess (open)
Create a new process
Syntax
LOADLIB "wh::os.whlib";
OBJECT FUNCTION CreateProcess(STRING processexecutable, STRING ARRAY arguments, RECORD options)Parameters
STRING processexecutablePath to executable
STRING ARRAY argumentsArguments for the process
RECORD optionsOptions
merge_output_errorsTRUE if the error stream should be merged into the output stream (requires take_output=TRUE, ignores take_errors)
separate_processgroupTRUE if the process should be created in a separate process group
take_errorsTRUE if we want to receive the process output stream (if false, it will be discarded)
take_inputTRUE if we want control of the process input stream (if false, it will be tied to EOF)
take_outputTRUE if we want to receive the process output stream (if false, it will be discarded)
virtualmemorylimitVirtual memory size - either the size in INTEGER(64) bytes or a string like "200MB", "2GB".