Click here to Skip to main content
15,881,852 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi How to execute exe form asp.net.if i run form local drive it will work ,but if i run form server,it only running process in task manager ,but not view to user.

VB
Dim myApp As New System.Diagnostics.Process()
         myApp.StartInfo.FileName = "C:\Windows\notepad.exe"
         myApp.Start()




If it possible give solution otherwise pls type the reason for why cant run,simply giving down vote is not proper answer and who give down vote they actually not know any thing ,even though how to reply for question

Regards
Aravind
Posted

1 solution

Whenever you run that code from client side the server is opening a notepad instance...
so your code is working but it is probably not doing what you would like it to do...
If you would like to open Notepad on the client then you can't do it that easily... there is no chance you start a process on client-side without running a custom activeX and then you will have to cope with all sort of security aspects and cross-browsers incompatibility...


question : if your code was technically realistic how should it behave on a client equipped with Linux or Mac OS? They have no "C:\Windows\notepad.exe"
 
Share this answer
 
Comments
Aravindba 24-Jul-13 4:27am    
Thank you for your reply and reason,thanx,if it possible use custom activex ? this is also problem like hacking ?
And my actual exe is not notepad,that one is C:\windows\customexe.exe
Guirec 24-Jul-13 4:36am    
I understood it is not notepad you want to launch in the end and you just use that as an example. That is the same for my answer... Replace Notepad with CutomExe and the answer remains exactly the same.

Maybe your design could be changed to an alternative solution...
it is much more common practice to see rich client applications (winforms, wpf, gtk, ...) embedding a browser control rahter than trying to perform rich client things inside the browser (this ususally leads to too many incompatibilities and security issues).

Aravindba 24-Jul-13 4:41am    
Thanx,thanx for ur reply.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900