p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
p.StandardInput.WriteLine("cmd.exe");
p.StandardInput.WriteLine("exit");
//string command = "cscript.exe";
//p.StartInfo.Arguments = command + " c://windows//system32//iisapp.vbs /a /"www.xxx.net/" ";
//p.WaitForExit();
string s = p.StandardOutput.ReadToEnd();
p.Close();
LogEvent(s, LogType.normal);