使用.NET网站调用程序只有进程不执行?
使用以下代码都试过:Process process = new Process();
process.StartInfo.FileName = "D:\\FlashPaper\\FlashPrinter.exe";
process.StartInfo.Arguments = "\"D:\\111.txt -o\" \"D:\\111.swf\"";
process.Start();
方法二:
Process.Start("cmd.exe", "/c D:\\FlashPaper\\FlashPrinter.exe D:\\111.txt -o D:\\333.swf");
方法三:
System.Diagnostics.Process p = new System.Diagnostics.Process();
p.StartInfo.FileName = "cmd.exe";//要执行的程序名称
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;//www.3ppt.com可能接受来自调用程序的输入信息
p.StartInfo.RedirectStandardInput = true;//由调用程序获取输出信息
p.StartInfo.CreateNoWindow = true;//不显示程序窗口
p.Start();//启动程序
//向cmd窗口发送输入信息:
p.StandardInput.WriteLine("/c D:\\FlashPaper\\FlashPrinter.exe D:\\111.txt -o D:\\333.swf");
因为在本地测试 .NET 2.0 WindowsXP系统 IIS5.1
都是只能在进程里看见运行了程序但是转换没有成功。而直接在本底CMD里面打命令是能正常转换的。求大神们帮助啊 --------------------编程问答-------------------- 。。自己搞定了 结贴 --------------------编程问答--------------------
又有个折腾在线预览的 院里有这方面的帖子 你可以找找 --------------------编程问答-------------------- --------------------编程问答--------------------
遇到同样的问题,不止楼主是如何解决的,愿楼主共享一下,谢谢~
补充:.NET技术 , C#