注册当前目录和子目录中的:
@echo off
color 0acls
for /r %%i in (*.ocx *.dll) do (
echo Registering %%~nxi...
regsvr32 %%i )
echo Done!
反注册当前目录和子目录中的:
@echo off
color 0a
cls
for /r %%i in (*.ocx *.dll) do (
echo Registering %%~nxi...
regsvr32 /u %%i )
echo Done!
注册当前目录的:
@echo off
color 0acls
for %%i in (*.ocx *.dll) do (
echo Registering %%~nxi...
regsvr32 %%i )
echo Done!
反注册当前目录中的:
@echo off
color 0a
cls
for %%i in (*.ocx *.dll) do (
echo Registering %%~nxi...
regsvr32 /u %%i )
echo Done!