有人可以告诉我为什么在 Windows 中运行 shell 命令的权限被拒绝以及如何解决?
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");
}