private static object RunStartAndReturnExitCode(StartOptions opts) { Console.WriteLine("StartProcess(" + opts.Cmd + ", " + opts.Parms + ", " + opts.IP + ")"); try { bool res = USBLAN.StartProcess(opts.Cmd, opts.Parms, opts.IP); if (!res) { Console.WriteLine("An error occurred."); return(1); } } catch (Exception e) { PrintException(e); return(1); } Console.WriteLine("start process complete."); return(0); }
private static void TestStartProcess() { bool result = USBLAN.StartProcess("/Windows/ctlpnl.exe", "/Windows/Audio.cpl"); Console.WriteLine("response: " + result); }