using   System.Diagnostics;  
   如果是dos  
   Process.Start("cmd.exe");  
   如果是其他文件  
   Process.Start("绝对路径+文件名.exe");  
   ------------------------------------  
   如何在c#中调用外部dos程序?  
   使用Process对象:      
   System.Diagnostics.Process     p=new     System.Diagnostics.Process();      
   p.StartInfo.FileName="arj.exe"     ;//需要启动的程序名      
   p.StartInfo.Arguments="-x     sourceFile.Arj     c:\temp";//启动参数      
   p.Start();//启动      
   if(p.HasExisted)//判断是否运行结束      
     p.kill(); 

相关文章:

  • 2021-11-30
  • 2021-10-16
  • 2022-12-23
  • 2021-08-12
  • 2022-01-29
  • 2022-12-23
  • 2021-10-02
猜你喜欢
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-09-13
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案