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

SET folderToSearch=C:\Alkane\

for %%v in ("%folderToSearch%*.dll") do (
 	regsvr32 /u /s "%%v"
)

 

Register or Unregister DLLs in a Folder
Comments have now been disabled. If you have a question to ask about this post please ask the community!