I have c# as below which runs a job in a particular server box.I need equivalent code in node js.
ProcessStartInfo startinfo = new ProcessStartInfo();
startinfo.FileName = string.Format("schtasks.exe");
string command = string.Format(" /run /s {0} /tn \"{1}\"", "serverbox", "Jobname");
startinfo.Arguments = command;
startinfo.CreateNoWindow = true;
startinfo.UseShellExecute = false;
startinfo.WindowStyle = ProcessWindowStyle.Hidden;
Common.Log.Info("Executing Command - " + command);
Process proc = new Process();
proc = Process.Start(startinfo);
via Nalu
No comments:
Post a Comment