Can anyone help me out with what is wrong with this:
I can use the function below and it works, but I am having trouble with the escape characters and quotes because the above function is giving me a "system cannot find the file specified" error.
Thanks for the help!
Code:
function manage(strComputer)
{
var Shell = new ActiveXObject("WScript.shell");
Shell.run("\"C:\\WINDOWS\\system32\\mmc.exe C:\\WINDOWS\\system32\\compmgmt.msc \/computer:" & strComputer & "\"");
}
I can use the function below and it works, but I am having trouble with the escape characters and quotes because the above function is giving me a "system cannot find the file specified" error.
Code:
function manage(strComputer)
{
var Shell = new ActiveXObject("WScript.shell");
Shell.run("c:\\windows\\system32\\notepad.exe");
}