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

Top 5 Contributors of the Month
Imran Ghani
Sohaib Khalid

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

 Subscribe to Articles

How to call other application from .Net application

Posted By:Kumar       Posted Date: January 27, 2009    Points: 25    Category: ASP.NET    URL: http://www.dotnetspark.com  

Hi All,

There may be some situation while we are do project where we need to call other application from our .net application.

If you want to open a word document from your .net application. Then the below code will helps you to open the word document


Your application will terminate once the word document is opened. Suppose you want to make your application wait for sometime while you work on the document. This can be done with the help of WaitForExit() method of the process.

Syste.Diagnostics.Process p = new System.Diagnostics.Process();



The above code will make your application wait for 20 secs before it terminates.

If you want your application to wait indefinately then don't pass any argument in the WaitForExit() method.


Hope this article will help you.


Thanks and regards,



 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