Register all .DLLs in a directory

Too useful not to repost.  Original source is ComputerHope.Com.  There's also a VBScript version.

When your SSIS .DLLs get unregistered for the 90th time, you can use this to re-register them.

@echo off

 

set cnt=0
for %%v in (D:\MyFolder\*.dll) do (
regsvr32 /s "%%v"
call set cnt=%%cnt%%+1
)
echo Total dlls found and registered = %cnt%