|
-
Apr 7th, 2006, 02:18 AM
#1
Thread Starter
Hyperactive Member
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
The Difference between a Successful person and others is not a Lack of Knowledge,
But rather a Lack of WILL 
-
Apr 7th, 2006, 02:24 AM
#2
Re: How to open an exe file using C#.net
Code:
Process.Start (@"C:\PathName\Filename.exe");
Read more about process class on MSDN.
Use [code] source code here[/code] tags when you post source code.
My Articles
-
Apr 7th, 2006, 02:26 AM
#3
Thread Starter
Hyperactive Member
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
The Difference between a Successful person and others is not a Lack of Knowledge,
But rather a Lack of WILL 
-
Apr 7th, 2006, 06:12 PM
#4
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|