使用以下代码都试过:
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里面打命令是能正常转换的。求大神们帮助啊
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里面打命令是能正常转换的。求大神们帮助啊
解决方案 »
- 网页FLASH游戏,怎么分析他的HTTP。请赐教
- 考勤系统和考勤机疑问??
- 怎样获取网页的一些信息
- C#控件问题(急需各路大侠帮助!)
- 为何我的VS2005中没有OracleClient端
- C# WINFROM 求助
- 在Socket长连接通讯后为什么会出现错误:Unable to write data to the transport connection
- Win Form里如何在DataGrid控件里使用其他控件?
- 如何获得拨号上网的机器的动态IP地址?
- C# 产生均匀分布随机数并求方差和期望
- 如何用C#做 当关闭正在打开的word文件的同时删除这个word文件
- C# ArrayList Sort()方法
又有个折腾在线预览的 院里有这方面的帖子 你可以找找