NET执行BAT,DLL (转)

来源:互联网 发布:软件sai下载 编辑:程序博客网 时间:2024/05/22 14:34

Process.Start(@"D:/Root/***/***/bin/Debug/***.bat");
Process.Start(
"cmd.exe","/c  regsvr32  "+path) 
***.bat内容:

regsvr32 
/s/%windir%/system32/***.dll
del 
***.dll %windir%/system32/***.dll
copy jmail.dll 
%windir%/system32
regsvr32 
/%windir%/system32/***.dll

 

 

 

原址:http://www.cnblogs.com/houhou/archive/2006/12/22/600138.html