@echo offcolor 0aclsfor /r %%i in (*.ocx) do (echo Registering %%~nxi...regsvr32 /s %%i )echo Done!
这是注册当前目录下的所有ocx