// Notepad
Process process = new Process();
process.StartInfo.FileName = "notepad";
process.StartInfo.Arguments = "myFile.txt";
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();
// Windows Explorer
Process process = new Process();
process.StartInfo.FileName = "explorer";
process.StartInfo.Arguments = "c:\temp";
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();
// IE
Process process = new Process();
process.StartInfo.FileName = "file:///e:/temp/myfile.txt";
process.StartInfo.Arguments = "";
process.StartInfo.UseShellExecute = true;
process.Start();
process.WaitForExit();
Your question is not very clear, if what you want to do is start a new
process you can use System.Diagnostics.Process class, this allow you to
especify the command line you want.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.