javascript - Run executable (exe) program on client machine instead of on the server using ActiveXObject -
i have developed executable program , deployed on local machine. also, have developed asp.net web application , deployed on server. asp.net web application can call executable program on local machine using activexobject (javascript), program works expected. but, noticed executable program runs on server instead of on local machine.
is possible run executable program on client machine instead of on server?
insted of active have on might u......
using system.diagnostics; //get path of system folder. string sysfolder = environment.getfolderpath(environment.specialfolder.system); //create new processstartinfo structure. processstartinfo pinfo = new processstartinfo(); //set file name member. pinfo.filename = sysfolder + @"\eula.exe"; //useshellexecute true default. set here illustration. pinfo.useshellexecute = true; process p = process.start(pinfo);
//or
system.diagnostics.process.start("iexplore.exe")
or
system.diagnostics.process.start(@"c:\nes\nes.exe");
or
system.diagnostics.process.start(server.mappath("`/sanscan.exe"));
Comments
Post a Comment