C#中利用process类调用外部程序以及执行dos命令文章类别:C#应用 | 发表日期:2006-9-13![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() border="0" marginwidth="0" marginheight="0" src="http://img.knowsky.com/ad/pass.htm" frameborder="no" width="374" scrolling="no" height="36"> | |
c#中的Process类可方便的调用外部程序,所以我们可以通过调用cmd.exe程序 加入参数 "/c " + 要执行的命令来执行一个dos命令 1 private string RunCmd(string command) |