OptionalargsArguments passed to the process, each quoted.
OptionalcwdWorking directory, which has to exist; the process inherits foobar2000's when omitted or empty.
Executable name (resolved through PATH) or path. Surrounding whitespace and quotes are removed.
OptionalhiddenStart the process without a visible window.
OptionalwaitMilliseconds to wait for an early exit; 0 returns as soon as the process starts.
Parameters for
shell.spawn. Start a process from an executable and an argument list. WithwaitForExitMsthe call waits that long for an early exit; a non-zero exit within the wait fails withOPERATION_FAILEDand the failure carriesprocessId,exitedandexitCode. An absolute executable path andcwdgo through path security.