string command = " -h"; System.Diagnostics.Process pRun; pRun = new System.Diagnostics.Process(); pRun.EnableRaisingEvents = true; pRun.StartInfo.FileName = @"D:\SMSServer\Srv.exe"; pRun.StartInfo.Arguments = command; pRun.StartInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Normal; pRun.Start(); pRun.WaitForExit();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)