Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.CreateNoWindow = false;
p.Start();p.StandardInput.WriteLine( "at 8:30 xxx" );为什么按F5就可以加上,而找到文件直接双击运行就不行呢。
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.CreateNoWindow = false;
p.Start();p.StandardInput.WriteLine( "at 8:30 xxx" );为什么按F5就可以加上,而找到文件直接双击运行就不行呢。
我也知道肯定不一样啊,但应该怎么解决呢?
然后你指定它以管理员方式运行 了.