javascript - To Access Notepad, calculator through asp.net -
i m trying open notepad, calculator in button click in asp.net code behind c#. tried code
system.diagnostics.process.start("c:\\windows\\system32\\notepad.exe");
this working fine in local system not working in server. tried javascript
function executecommands(inputparms) { alert('ff'); var oshell = new activexobject("shell.application"); var commandtorun = "c:\\winnt\\notepad.exe"; if (inputparms != "") { var commandparms = document.form1.filename.value; } oshell.shellexecute(commandtorun, commandparms, "", "open", "1"); }
even not working out. can please suggest me in on how open notepad application in client end out disturbing server notepad.
this can't done. imagine security mess we'd in if web-page run arbitrary programs on client machine. oh wait... ;-)
Comments
Post a Comment