Run Exe file on page lode
-
hi all i want to load exe file which is in program files Ex.'VPC32.exe' which is of Symantic Antivirus when user access my url on load of page the exe will execute that time the application is already installed on client machine for that i used
function runcmd() { File = 'VPC32.exe'; WSH = new ActiveXObject('WScript.shell'); WSH.run(File); }
but gives error as Automation server cant create object please help me"also how i can search that there is required application of that exe is installed on users system or not (if exist run exe) using javascript"
The Stifler -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
-
hi all i want to load exe file which is in program files Ex.'VPC32.exe' which is of Symantic Antivirus when user access my url on load of page the exe will execute that time the application is already installed on client machine for that i used
function runcmd() { File = 'VPC32.exe'; WSH = new ActiveXObject('WScript.shell'); WSH.run(File); }
but gives error as Automation server cant create object please help me"also how i can search that there is required application of that exe is installed on users system or not (if exist run exe) using javascript"
The Stifler -- Bugs can neither be created nor be removed from software by a developer. They can only be converted from one form to another. The total number of bugs in the software always remain constant.
change the extention of the web page from .html (or .htm) to .hta
-
change the extention of the web page from .html (or .htm) to .hta
Hi, If you want to run an exe file , you can use asp.net processinfo class Process p = new Process(); ProcessStartInfo psi = new ProcessStartInfo("cmd.exe"); // this will open command prompt psi.Arguments = " yourexefile.exe parmeter[1] parmeter[1] etc. "; p.StartInfo = psi; p.Start(); or you can use xp_cmdshell present in master database if you are using MS SQL as database to run the exe file:)