博客园  :: 首页  :: 新随笔  :: 订阅 订阅  :: 管理

。NET执行BAT,DLL

Posted on 2006-12-22 10:49  小哈110  阅读(576)  评论(0)    收藏  举报
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