Hello,
Thank you for posting in Microsoft Community Forum.
As per the description, I understand that you wanted to register .dll and .ocx files in a particular directory and wanted to re-register a portion of .dll and .ocx files.
I suggest you to go through the following article to know more about registering .dll file.
Refer to the Link:
https://support2.microsoft.com/kb/844592?wa=wsignin1.0
Unregister or Register DLL or OCX files in Windows 7:
The Regsvr32 tool is a command-line utility that can be used for registering and un-registering OLE controls like DLL and ActiveX (OCX) controls in the Windows operating system. If you find that some of your Windows functions are note working properly, you may need to register your dll files.
Register dll file
To register a dll or ocx file, open a command prompt windows as an administrator, type the following and hit Enter:
regsvr32 “path & filename of dllor ocx
Unregister dll file
To un-register a dll or ocx file, open a command prompt windows as an administrator, type the following and hit Enter:
regsvr32 /u “path & filename of dllor ocx“
Note: This will register or unregister thedllfile.
Hope this information is helpful. Please do let us know if you need further assistance with Windows, we’ll be glad to assist you.