Wednesday, February 7, 2007

How to start a command prompt by coding using C# .NET?

Try this:

using System.Diagnostics;

ProcessStartInfo psi = new ProcessStartInfo("sqlcmd", "calc");
Process proc
= Process.Start(psi);
proc.Start();
proc.Close();



Guess what program will show up?

No comments: