国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設計 > 正文

批處理批量注冊DLL文件

2020-06-27 15:47:43
字體:
來源:轉載
供稿:網友

有時候用電腦的時候遇到由于DLL文件丟失或損壞而造成的種種故障,大家都只知道只要重新注冊一下DLL文件就可以了,但是對于新手來說即使知道是DLL文件損外,但是不知道是哪個DLL文件也束手無策,所以用這個批處理可以循環注冊DLL文件,達到解決由于DLL丟失的種種故障!

 

復制代碼
代碼如下:

for %%i in (%windir%/system32/*.dll) do regsvr32.exe /s %%i


下面是單個注冊dll文件的方法(這里以w32time.dll為例)

復制代碼
代碼如下:

@echo 開始注冊
copy w32time.dll %windir%/system32/
regsvr32 %windir%/system32/w32time.dll /s
@echo 注冊成功
@pause

使用的時候替換掉w32time.dll即可

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

 


發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 嵊州市| 延安市| 泸定县| 溧阳市| 莫力| 永宁县| 河南省| 旅游| 嵊泗县| 靖安县| 郯城县| 汪清县| 山东省| 宜章县| 灵璧县| 蚌埠市| 萝北县| 新乐市| 威信县| 西乌珠穆沁旗| 郯城县| 嘉峪关市| 弥渡县| 山东省| 绵阳市| 宣化县| 南阳市| 花垣县| 成都市| 图木舒克市| 天气| 昔阳县| 磴口县| 濉溪县| 同仁县| 黄浦区| 赤水市| 潍坊市| 南雄市| 临澧县| 南雄市|