Sometimes when we’re debugging an application we might want to ensure that every DLL (or OCX) is registered correctly. And rather than registering each assembly manually we can write a batch file to register or unregister DLLs in a folder:
@echo off
for %%v in ("C:\Program Files\Alkane\*.dll") do (
REM (unregister) regsvr32 /u /s "%%v"
regsvr32 /s "%%v"
)
![Register or Unregister DLLs in a Folder](https://www.alkanesolutions.co.uk/wp-content/uploads/2023/12/register-or-unregister-dlls-in-a-folder-300x169.png)
![Register or Unregister DLLs in a Folder](https://www.alkanesolutions.co.uk/wp-content/themes/twentyeleven-child/images/application-packaging-services-blog.png)