您的位置:首页 > 其它

批处理文件(bat文件)注册dll .

2012-04-23 13:49 267 查看
1)注册

Regist.bat

@echo 开始注册

net stop iisadmin /y

@echo 跳转到当前批处理文件路径

cd %~dp0

copy DynamicGif.dll %windir%\system32

regsvr32 %windir%\system32\DynamicGif.dll /s

copy ImageOle.dll %windir%\system32

regsvr32 %windir%\system32\ImageOle.dll /s

net start w3svc

@echo 注册成功

@pause

2)重新注册

ReRegist.bat

@echo 重新注册

net stop iisadmin /y

@echo 跳转到当前批处理文件路径

cd %~dp0

regsvr32/u %windir%\system32\DynamicGif.dll /s

del %windir%\system32\DynamicGif.dll

copy DynamicGif.dll %windir%\system32

regsvr32 %windir%\system32\DynamicGif.dll /s

regsvr32/u %windir%\system32\ImageOle.dll /s

del %windir%\system32\ImageOle.dll

copy ImageOle.dll %windir%\system32

regsvr32 %windir%\system32\ImageOle.dll /s

net start w3svc

@echo 重新注册成功

@pause

3)反注册

UnRegist.bat

@echo 删除注册

net stop iisadmin /y

@echo 跳转到当前批处理文件路径

cd %~dp0

regsvr32/u %windir%\system32\DynamicGif.dll /s

del %windir%\system32\DynamicGif.dll

regsvr32/u %windir%\system32\ImageOle.dll /s

del %windir%\system32\ImageOle.dll

net start w3svc

@echo 删除注册成功

@pause
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: