PDA

Click to See Complete Forum and Search --> : How to open an exe file using C#.net


nagasrikanth
Apr 7th, 2006, 02:18 AM
Hi every body..

This is my first thread in C#...Im very new to C#.net..

I just want to know that is it possible to open an external exe file using C#.Net...
for example i want to open MSWORD.exe , then in VB i used to write code like shell c:\pfiles\msword.exe

is there any porvision like this in C#.net..???

thanx & regards
Srikanth

Shuja Ali
Apr 7th, 2006, 02:24 AM
Process.Start (@"C:\PathName\Filename.exe"); Read more about process class on MSDN.

nagasrikanth
Apr 7th, 2006, 02:26 AM
thanQ ali... I will chk out the process class..and revert back in case of doubts...


Thanx & regards
Srikanth

conipto
Apr 7th, 2006, 06:12 PM
You can also usually just pass a filename to process.start and it will open with the user's current application (for example if I were using OpenOffice for .DOC files instead of word)

Bill