Can someone tell me why permission is denied to run a shell command in windows and how to resolve?
function executeCommands(inputparms)
{
var oShell = new ActiveXObject("Shell.Application");
var commandtoRun = "C:\\WINDOWS\\Notepad.exe";
if (inputparms != "")
{
var commandParms = document.Form1.filename.value;
}
oShell.ShellExecute(commandtoRun, commandParms, "", "open", "1");
}
It's necessary to have two settings turned on.
Note : as displayed at the bottom of the "Internet Options > Advanced > Security" block, the computer must be restarted for this option to be taken into account.