Topic: Register multiple dll's in a folder
If you want a simple script to re-register several dll's or files that need to be registered with Windows, feel free to modify the following:
@echo Registering files...
@for %%f in (*.dll) do start /wait regsvr32 /s "%%f"
@for %%f in (*.olb) do start /wait regsvr32 /s "%%f"
@for %%f in (*.ocx) do start /wait regsvr32 /s "%%f"
@echo Registering Help files...
cd ..\help
@for %%f in (*.olb) do start /wait regsvr32 /s "%%f"This script can just as easily be used to unregister dll's also, here is the usage switches for regsvr32.exe:
RegSvr32.exe has the following command-line options:
Regsvr32 [/u] [/n] [/i[:cmdline]] dllname
/u - Unregister server
/i - Call DllInstall passing it an optional [cmdline]; when used with /u calls dll uninstall
/n - do not call DllRegisterServer; this option must be used with /i
/s – Silent; display no message boxes (added with Windows XP and Windows Vista)