regsvr32 command can be used to register .dll file as command components in the registry.
Windows commands can be accessed from here.
Examples:
1. Unload Research.bat
The file will contain:
regsvr32 /u /s "%programfiles(x86)%\Blackbaud\Research.dll"
del "%programfiles(x86)%\Blackbaud\Research.dll"
2. Save Resarch.bat
rem add the date to the output
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set year=%%c
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set month=%%a
for /f "tokens=2-4 delims=/ " %%a in ('date /T') do set day=%%b
set date=%year%-%month%-%day%
rem Now add the time to the output
for /f "tokens=1 delims=: " %%h in ('time /T') do set hour=%%h
for /f "tokens=2 delims=: " %%m in ('time /T') do set minutes=%%m
for /f "tokens=3 delims=: " %%a in ('time /T') do set ampm=%%a
set time=%ampm%-%hour%%minutes%
mkdir V:\Research\%date%--%time%
copy V:\Research.dll R:\Research.dll
copy V:\Research.dll \\xxhhvapprzrp01\tools\dlls\Research.dll
copy V:\Research.vba V:\Research\%date%--%time%\
3. Load Research.bat
regsvr32 /u /s "%programfiles(x86)%\Blackbaud\Research.dll"
COPY "\\path-to-file\RE Software\Research.dll" "%programfiles(x86)%\Blackbaud\Research.dll"
regsvr32 "%programfiles(x86)%\Blackbaud\Research.dll"