Monday, 13 October 2014

Register a dll or all dll in a given folder into registry

Run cmd as adminstrator



Registering a file
To register (or re-register) a file, type:
regsvr32 <filename>.dll
or
regsvr32 <path>\<filename>.dll
where <path> is the path to the file, and <filename> is the name of the file.

Unregistering a file
To unregister a file, type:
regsvr32 -u <filename>.dll
or
regsvr32 -u <path>\<filename>.dll
where <path> is the path to the file, and <filename> is the name of the file.


How to register all DLL Files using CMD
This script turn out to be a extremely handy when all *.dll files in a folder need to be registered.
At the CMD prompt, type the following command and press [Enter]:

for %x in (c:\windows\system32\*.dll) do regsvr32 %x

This command will reregister every *.dll file under C:\windows\system32
 

No comments:

Post a Comment