Execute exe from Web App
-
Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma
-
Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma
-
Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma
-
Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma
-
Hi Guys and Gals I've tried almost everything, so this is the last resort. I really do hope someone might be able to help me. I have a web page (ASP.NET). In here I have a button. When the user clicks the button a bat file needs to execute on the client machine. The bat file will contain a link to a .aut file. I've tried the System.Diagnostics.Process, but this executes the file on the server and also under the NETWORK SERVICE account. Thus the user never see what's happening because it's not happening on his/her machine. Can anybody please either give me advice on how to accomplish this or direct me to a article that can explain this. I've been searching for 8 hours now and just cant find anything workable. Thank you so much. I will be forever greatful. Elizma
its possible using client side script..
-
Create an anchor tag that points to the absolute path of the batch file. But the batch file needs to be in the client machine already.
<a href="file://C:/myfile.bat">Click here</a>
Hi Thank you soooo much for your solution. It works, but only partialy. It does not run when I call it from an aspx page, but if I create an html page it runs, but only if I run it directly from the saved location. When I deploy it into IIS and browse to the file, nothing happens. It's almost as if IIS is blocking this. This will also explain why nothing is happening in the aspx page. Am I missing something? Kind Regards, Elizma
-
its possible using client side script..
-
javascript var obj = new ActiveXObject("Wscript.shell"); obj.Run(FileName);