System.Diagnostics.Process proc=new System.Diagnostics.Process();
proc.EnableRaisingEvents=false;
proc.StartInfo.FileName="net.exe";
proc.StartInfo.Arguments="time";
//proc.StartInfo.Arguments="use";
proc.StartInfo.UseShellExecute=false;
//proc.StartInfo.CreateNoWindow=false;
proc.StartInfo.WindowStyle=System.Diagnostics.ProcessWindowStyle.Minimized;
proc.StartInfo.RedirectStandardOutput=true;proc.Start();
System.IO.StreamReader srOutput=proc.StandardOutput;
string sOutput=srOutput.ReadToEnd();
MessageBox.Show(sOutput);