I'm looking for a way to run a cmd command without showing the cmd window to the user.
I'm using something like:
function reboot() {
var ws = new ActiveXObject("WScript.Shell");
ws.Exec("shutdown.exe -r -t 120");
}
But it still shows the window, is there anyway not to show it?
Thanks