by pietman
2. March 2010 13:45
run shell commands:
private static void RunCommand(string cmdname)
{
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = cmdname;
p.Start();
}
call it with the following command:
RunCommand("cmd"); // opens a shell command prompt window