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

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -