I have the following javascript code to run notepade.exe:
<SCRIPT type="text/javascript" LANGUAGE="JavaScript"> function executeCommands() { var oShell = new ActiveXObject("Shell.Application"); var commandtoRun ="C:\WINDOWS\notepad.exe"; oShell.ShellExecute(commandtoRun,"","", "open", "1"); } </SCRIPT>
The problem is that when I run the script, then it gives an error ... "Permission denied."
Can someone help me on this?
jitendra
source share