.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Articles >> ASP.NET >> Post New Resource Bookmark and Share   

 Subscribe to Articles

Opening any exexutable file (.exe) from .Net application

Posted By:ASPEvil       Posted Date: November 03, 2010    Points: 200    Category: ASP.NET    URL: http://www.dotnetspark.com  

Opening any exexutable file (.exe) from .Net application using VB.Net. The .exe file can be anywhere in the system.

Sometimes there are needs when we can open and run any third party executable(.exe) file from our .Net application. One living example of this type of need I felt when I was making a software for a general store and they were looking for just a same calculator like the Windows "Calculator" which will be attached with the software and when they will need some manual calculation they will use it and rest of time the original software will work. As the time and budget was very low for this project, I did attach a button which will upon clicked, bring the windows calculator.

1) What executable file you are wanting to open, first find that executable file's exact path using manual search.

2) Drag and Drop a button on your application.

3) Go to the button's click event by double clicking the button in the design area.

4) Write the line as it is:-


Note: Here "calc.exe" is the executable file name of calculator. By this way, you can run any executable file(.exe) like Ms Word,Excel,Paint etc. The only difference will be, you will have to change the double quotation marked string within the parenthesis to suit the executable's exact file path.
 Subscribe to Articles


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More Articles on C#, ASP.Net, Vb.Net, SQL Server and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend