The SCR_ProcessManagerWrapper JavaScript class. Singleton interface used to monitor, create and control detached child processes by name.
childName = "Child Process"
executable = "C://Windows//System32//mspaint.exe"
arguments = [ "HarmonyPremium.ico"]
environment = {"CustomKey":"CustomValue"}
MessageLog.
trace(
"Executing child process named: '" + childName +
"' with executable '" + executable +
"'" +
" and arguments '"+ arguments.join(
' ') +
"'" );
if (!SessionProcessMgr.launchAndDetach(childName , executable, arguments, environment))
MessageLog.
error(
"Failed to launch the child process: '" + childName +
"'");
if(SessionProcessMgr.isRunning(childName))
else
MessageLog.
trace(
"Running child processes: '" + SessionProcessMgr.children() +
"'");