|
-
Apr 24th, 2006, 11:54 PM
#1
Thread Starter
Hyperactive Member
starting a process
hi, i'm kind of new to c# and i was wondering how to start a process, for example, say my process is "example.exe", and is in the root of c drive in visual basic i would start it by using: process.start("c:\example.exe"), how would i do this in c#?
"Anybody can get angry or sad and frown but it takes a person with character to smile when times are hard."
-
Apr 25th, 2006, 12:25 AM
#2
Re: starting a process
Exactly the same way :
Code:
using System.Diagnostics;
Process.Start(@"C:\foo.exe");
Every passing hour brings the Solar System forty-three thousand miles closer to Globular Cluster M13 in Hercules -- and still there are some misfits who insist that there is no such thing as progress.
-
Apr 25th, 2006, 05:47 AM
#3
Re: starting a process
Remember that the class library you're using in C# is exactly the same one as you were using in VB. Every class, property, method, etc. is exactly the same. It's only the key words and the syntax that's different.
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
|