Share via

How to register .dll and .ocx files

Anonymous
2014-09-30T07:23:49+00:00

Hi there,

Anyone know of a command similar to for %x in (c:\windows\system32\*.dll) do regsvr32 %x in order to register all .dlls in a particular directory including all subdirectories and to validate those .dlls that will re-register successfully. This command can also be used to register .ocx files too. I have incorporated regsvr32 from SysWow64 and System32 but still produce the same results. Also is there a command where you can re-register a portion of .dll and .ocx files rather than all?

Many thanks,

RocknRollTim

Original title: Re-registering .dll and .ocx files

Windows for home | Previous Windows versions | Windows update

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

  1. Anonymous
    2014-10-01T05:39:10+00:00

    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.

    4 people found this answer helpful.
    0 comments No comments

Answer accepted by question author

  1. Anonymous
    2014-10-02T11:14:58+00:00

    Hello,

    Thank you for keeping us updated on the status of the issue.

    Do you have any issues while registering or unregistering the .dll files?

    Refer to the following link to the article base on Regsvr32 tool and troubleshoot Regsvr32 error messages

    http://support2.microsoft.com/kb/249873

    Refer to the article on Regsvr32

    http://technet.microsoft.com/en-us/library/bb490985.aspx

    Please do let us know if you need further assistance with Windows, we’ll be glad to assist you.

    2 people found this answer helpful.
    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. Anonymous
    2014-10-04T13:29:18+00:00

    Hi Shivam Kesarwani,

    Sorry for taking the time in getting back to you but with regards to registering .dll and .ocx files and not unregistering .dll and .ocx files, I do get 3 types of messages when registering .dll and .ocx files using for %x in (c:\windows\system32\*.dll) do regsvr32 %x in C:\Windows\System32 including subfolders, C:\Windows\SysWow64 including subfolders, C:\Program Files (x86)\Microsoft Office including subfolders, C:\Program Files (x86)\Microsoft.NET including subfolders and C:\Program Files\Microsoft Office including subfolders, and they are Microsoft Register Server stopped unexpectedly, .dll and/or .ocx could not be registered which there were different variations of this but access denied though and .dll and/or .ocx was successfully registered but in the masses though i.e. multiples of the same messages in which I have to keep constantly pressing return or in some cases when Command Prompt keeps overlapping with these messages to keep repeatively left clicking on each message as well as constantly holding down return otherwise the screen flickers and doesn't always refresh properly in which I have to keep manually refreshing the screen as well as clicking to error messages saying that processes terminated expectedly. Reason why I'm doing this is that I am trying to troubleshoot a program mentioned in one of my other forum threads on the Microsoft Community http://answers.microsoft.com/en-us/windows/forum/windows\_7-performance/this-advertised-application-will-not-be-installed/91a7ebe7-0b37-46f2-892e-cc25fae24fcc. Lastly I found another command which registers .dll and .ocx files silently which doesn't generate the messages in the masses and to cause the computer to nearly crash but again this excludes subfolders and it is for /f %s in ('dir /b *.dll') do regsvr32 /s %s. Lastly is there no command to register .dll and .ocx files in a particular folder and to see past the subfolders within that folder in order to register all .dll and .ocx files as well as a command to stop through a portion of .dll and .ocx files in a particular folder again including subfolders?

    Kind regards,

    RocknRollTim

    0 comments No comments
  2. Anonymous
    2014-10-01T07:04:03+00:00

    Hi Shivam Kesarwani,

    Thank you for posting the info on how to register and to unregister .dll and .ocx files, but are these the only methods you can suggest? Are there are any advanced methods to register and to unregister .dll and .ocx files apart from the one I mentioned in the first post?

    Kind regards,

    RocknRollTim

    0 comments No comments