Click here to Skip to main content
15,885,032 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hello, i have a question. I have an web application(project A) and console application(Project B), when the user input 3 value in 3 different textbox in Project A and press submit button, how do i run the exe file and pass that value into console application(Project B).

thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 30-Sep-14 23:55pm    
Why? Just don't do it.
—SA
_Maxxx_ 1-Oct-14 0:11am    
Is the console application running on the client or the server?
If on the client, then it's down to using activex

http://www.codeproject.com/Articles/113678/How-to-execute-a-Local-File-using-HTML-Application

or register your own protocol when the exe is installed on the client, so that when you click an appropriate link, the user will be prompted to open it in the appropriate application (a bit like iTunes works when you click on a link to a tune in a web page)
Member 11025924 1-Oct-14 0:15am    
ok thanks

1 solution

A Web application does not have access to a client system. One exclusion would be using ActiveX, but this technique 1) won't be supported by all browsers, it's mainly the IE feature, 2) won't be supported by non-Microsoft OS, 3) is unsafe; in fact, for safety-savvy user, knowing that you are using this trick could be a good reason to never visit your site.

You did not explain the reason of such development, by my general advise would be not doing it. If you shared your ultimate goal, I would probably advise something else.

—SA
 
Share this answer
 

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