查看: 879|回复: 0
|
[求助]C#.NET如何在一个web application内使用 .bat file?
[复制链接]
|
|
我写了一个web application, 需要呼叫 external .bat file。 我使用以下的code
Process executeProcess = new Process();
//create new instance for executeProcess
executeProcess.StartInfo.FileName = "Wincomm.exe";
//assign faeDetect.exe to open
executeProcess.StartInfo.CreateNoWindow = true;
executeProcess.StartInfo.RedirectStandardError = true;
executeProcess.StartInfo.UseShellExecute = false;
executeProcess.Start();
executeProcess.WaitForExit();
在 window application 内可以顺利执行。但,在web aplication 却用不到了。 请问各位大大能教我吗?拜托。。。。 这对我很重要。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|