Process process = new Process();
//设定程序名
process.StartInfo.FileName = ConfigurationManager.AppSettings["sdPath"].ToString() + @"\360sd.exe";
//要被杀毒的文件
process.StartInfo.Arguments = @"E:\1.jpg";
//关闭Shell的使用
process.StartInfo.UseShellExecute = false;
//重定向标准输入
process.StartInfo.RedirectStandardInput = true;
//重定向标准输出
process.StartInfo.RedirectStandardOutput = true;
//重定向错误输出
process.StartInfo.RedirectStandardError = true;
//设置不显示窗口
process.StartInfo.CreateNoWindow = true;
//ping的显示结果
string ss_PingResult = string.Empty;
//设置不显示窗口
process.StartInfo.CreateNoWindow = true;
process.Start();
process.StandardInput.AutoFlush = true;
process.StandardInput.WriteLine("exit");
//设定程序名
process.StartInfo.FileName = ConfigurationManager.AppSettings["sdPath"].ToString() + @"\360sd.exe";
//要被杀毒的文件
process.StartInfo.Arguments = @"E:\1.jpg";
//关闭Shell的使用
process.StartInfo.UseShellExecute = false;
//重定向标准输入
process.StartInfo.RedirectStandardInput = true;
//重定向标准输出
process.StartInfo.RedirectStandardOutput = true;
//重定向错误输出
process.StartInfo.RedirectStandardError = true;
//设置不显示窗口
process.StartInfo.CreateNoWindow = true;
//ping的显示结果
string ss_PingResult = string.Empty;
//设置不显示窗口
process.StartInfo.CreateNoWindow = true;
process.Start();
process.StandardInput.AutoFlush = true;
process.StandardInput.WriteLine("exit");
3万+

被折叠的 条评论
为什么被折叠?



