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#?
Printable View
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#?
Exactly the same way :) :
Code:using System.Diagnostics;
Process.Start(@"C:\foo.exe");
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.