How to open an exe file using C#.net
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
VB Code:
shell c:\pfiles\msword.exe
is there any porvision like this in C#.net..???
thanx & regards
Srikanth
Re: How to open an exe file using C#.net
Code:
Process.Start (@"C:\PathName\Filename.exe");
Read more about process class on MSDN.
Re: How to open an exe file using C#.net
thanQ ali... I will chk out the process class..and revert back in case of doubts...
Thanx & regards
Srikanth
Re: How to open an exe file using C#.net
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