- 帖子
- 8
- 积分
- 30
- 技术
- 0
- 捐助
- 0
- 注册时间
- 2011-4-28
|
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.CreateNoWindow = false;
p.Start();
p.StandardInput.WriteLine("start explorer");//这个括号里该怎么写命令?我发现好多命令都执行不了啊
p.StandardInput.WriteLine("exit");
string s = p.StandardOutput.ReadToEnd();
p.Close(); |
-
1
评分人数
-
|