1

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) 
Faith without works is dead, faith without hearing is deaf. Salvation is dead without Faith and Works. But Salvation is not dependant on Works. You can always have Salvation, you just have to accept the gift that was given in love, from God himself, Jesus Christ. -- Aaron Echols