12.6.15

BAT file to Register a DLL


If you have a number of DLLs that you want to register, then considering creating a BAT script for that.

Create a file with .bat extension, and enter the one line command, like below, for each dll.

regsvr32 "C:\Program Files\DLLNameToRegister.dll"


Its not necessary but advisable to have the entire path of the DLL mentioned in the above command, which will save anyone the trouble of fixing 'dll not found' issues. One of the other ways you can do this is by saving the .bat file in the same dir as the DLL, but this may not be always possible.

Also, you may need Admin rights to register some DLLs, so make sure you run the .bat file with an admin ID.
Once done, you will get a message that says that the registration succeeded.

No comments:

Post a Comment