Regsvr32 introduction-very useful

Source: Internet
Author: User
Tags knowledge base microsoft website

The regsvr32 command is used to register the dynamic link library file as a command in the registry. The regsvr32.exe of the winxp system is located in the WINNT \ system32 folder under the windows \ system32 folder.

 

Syntax: regsvr32 [/u] [/S] [/n] [/I [: cmdline] dllname where dllname is the ActiveX control file name. We recommend that you copy it to the system folder before installation.

Parameters

/U

Anti-registration control

/S

The specified regsvr32 runs quietly without any message boxes.

/N

Specify not to call the dllregisterserver. This option must be used with/I.

/I: using line

Call dllinstall to pass it to the optional [pipeline line]. When used together with/u, it calls DLL uninstallation.

Dllname

Specifies the DLL file name to be registered.

/?

InCommand PromptShow Help.

How to execute this command

1. You can call up the running dialog box in "start"-"run", or use the win + R hotkey, and then enter it directly in the input column.

2. Run CMD at start to bring up the 'COMMAND prompt 'window, and then run the regsvr32 command.

Example:

To register. DLL for Active Directory schema, type the following command at the MS-DOS prompt:

C: \ regsvr32 schmmgmt. dll

Regsvr32 is a system file

Many regions use the regsvr32.exe command in windows. Don't look down on this small command. Sometimes it can help you solve big problems.

Main functions1. easily fix ie browsers

Many Internet users have had this experience: IE cannot open any new windows ,. Clicking the hyperlink with the mouse does not respond. This usually requires you to restart the machine or reinstall IE to solve the problem. In fact, the regsvr32.exe command can be easily used. Enter “regsvr32.exe actxprxy. dll at the start of ---runtime. Press enter to confirm the sequence and then press enter to run regsvr32.exe shdocvw. dll. Press enter. After the computer is restarted, ie is easily repaired. Everything is normal online.

Ii. Solve the problem that Windows cannot be upgraded online

Windows has many vulnerabilities. You must use Windows Update to upgrade your system at intervals. But thisProgramIt is always unavailable. At this time, using regsvr32.exe can help us solve this problem. Start ---run --enter regsvr32.exe wupdinfo. dll and press Enter. This is the update component that the system re-registers. After restarting the machine, you can upgrade your system.

3. Uninstall the chicken ribs function in Win XP

In the XP system, some services not only occupy serious system resources, but also have poor functions and capabilities. It is not as convenient as some professional software. For example, its image preview and zip compression functions. In this case, we can use regsvr32.exe to uninstall these chicken ribs. Run ---enter regsvr32.exe/u zipfldr. DLL to uninstall the function. If you need this function later, you only need to enter regsvr32 zipfldr. dll again. In the same example, you can uninstall the image preview function by running the command-run ---input regsvr32.exe/u thumbvw. dll. Enter regsvr32 thumbvw. dll when recovery is required.

4. New methods to prevent web script viruses

The web script virus will become invisible when you browse the Web page. This virus is sometimes not found in general anti-virus software. In fact, this virus often calls the FSO object (File System Object ). Therefore, we only need to disable FSO to effectively prevent the spread of the virus. The operation method is also very simple. Start-run-enter “regsvr32.exe/u scrrun. DLL to disable FSO. Enter regsvr32.exe scrrun. dll in the dig command. I believe many others. I have some knowledge about regsvr32.exe. In fact, this command is the registration and anti-registration tool for control files (. dll,. ocx,. Cpl extension) in windows. The command is located in/Windows/system under Win98. In fact, in general, the so-called registration is to put some control files in the location where they should be (not strictly speaking ). However, it is much easier to use some system controls or other commands. For details about the parameters of this command, refer to the first figure in this post. Generally, only the/u parameter is used.

5. fixed the problem that files cannot be viewed through thumbnails.

2000: Start → run, enter regsvr32 thumbvw. dll

XP: Start → run, enter regsvr32 shimgvw. dllThis article mainly solves the problem of "setting as desktop background" when right-clicking the Windows Image and fax viewer !! Special note!

6. Enable WMP player to support RM format

Many friends like to use Windows Media Player (WMP), but it does not support the RM format. Do you have to install other playing software? Take Win XP as an example. First download a plug-in RM format and decompress the plug-in to obtain two folders: release (for Windows 9x) and release Unicode (for Windows 2000/XP ); in the release Unicode folder

Copy the realmediasplitter. Ax file to the "system drive letter \ windows \ system32 \" directory, type "regsvr32 realmediasplitter. Ax" in "Start> Run", and click "OK. Download the decoder, such as real alternative. After installation, you can use WMP to play the RM format audio and video files.

7. Enable the wmp9 player

Some music Web pages use Media Player for online karaoke. Some friends have installed wmp9, but they only see the boring wmp6 player panel when they listen to music online. They want to make the beautiful wmp9 Panel appear, of course it's okay. For most Windows 98 operating systems with Frequently Asked Questions, close Ie first, type "regsvr32 wmpdxm. dll" in "Start> Run", and click "OK.

8. Solve the Problem of no response when the system function is enabled

Regsvr32 shdocvw. dll

Sometimes, you can click the search function, help, support, or management tools of the XP system from the Start menu, but there is no response, which is the lack of association in their opening method, so we only need to use regsvr32 to register the dynamic connection library files they need to call.

9. The Add/delete program cannot be opened.

When you open the Add/delete program in the control panel, double-click its icon and there is no response, or automatically close it after it is opened. Try the following command to solve the problem.

Regsvr32 mshtml. dll

Regsvr32 jscript. dll

Regsvr32 MSI. dll

Regsvr32 "C: \ Program Files \ common files \ System \ ole db \ oledb32.dll"

Regsvr32 "C: \ Program Files \ common files \ System \ ADO \ msado15.dll"

Regsvr32 mshtmled. dll

Regsvr32/I shdocvw. dll

Regsvr32/I shell32.dll

10. XP user account cannot be opened

Regsvr32 nusrmgr. CPL

Regsvr32 mshtml. dll

Regsvr32 jscript. dll

Regsvr32/I shdocvw. dll

11. Solve the problem that Windows cannot be upgraded online

Regsvr32 wupdinfo. dll although the two commands can be repaired, but the symptoms do not cure the problem. I suggest a friend who has encountered this problem go to the Microsoft website to perform IE security updates, that is, install vulnerability patches.

Regsvr32 jscript. dll

Regsvr32 VBScript. dll

It can effectively solve the problem that some web pages cannot be normally displayed and the function is not normal. Fix the blank windows, such as the blank Operation Panel of the search assistant of the 'search' function of XP, the blank System Restore page, and the blank User Account page (100% degree of control can be fixed ). When Windows Media Player 9 or a later version is enabled, the system prompts 'internal application error' (100% degree of certainty can be fixed ). You can fix the blank space after 'add/delete project' of Win 2000 is opened (99% degree of control can be fixed ). Solve the problem that Windows 2000 does not see any files when viewing the Program Files folder and WinNT folder on the web, and the icon of the 'Control panel 'runs to the left. Solve the problem that the shortcut menu function of the Internet Express cannot be used on the webpage. On the website, When you right-click a 'Download connection', a menu will pop up. If you select 'use Internet Express downloading', The flashget download task page will pop up. If you find this function does not respond, this may be the reason: the original menu is the jc_link.htm file in the flashgetdirectory. This file is written in VB language, so its function is to lose the dynamic Connection Library VBScript. DLL is not registered or called. And so on.

Regsvr32.exe error message

The following lists regsvr32 error messages and possible causes.

Unrecognized flag:/invalid_flag

The keysign or switch combination is ineffective (see "regsvr32.exe usage" in this document ).

No DLL name specified.

The. dll file name is not included (see "regsvr32.exe usage" in this document ).

Dllname was loaded, but the dllregisterserver or dllunregisterserver entry point was not found.

The dllname Is Not A. dll or. ocx file. For example, enter regsvr32 wjview.exe to generate the error message.

Dllname is not an executable file and no registration helper is registered for this file type.

Dllname is not an executable file (.exe,. dll, or. ocx ). For example, enter regsvr32 autoexec. BAT to generate the error message.

Dllname was loaded, but the dllregisterserver or dllunregisterserver entry point was not found.

The dllname may not be exported, or the memory may have a corrupted dllname version. Consider using pview to detect the file and delete it.

Dllname is not self-registerable or a specified upted version is in memory.

For example, if you type regsvr32 icwdial. dll, the error message is returned because the icwdial. dll file cannot be registered by yourself. If you suspect a corrupted dllname version exists in the memory, try restarting the computer or re-extracting the original version of the file. If you are running Windows NT, you may need to use the kill or pview tool in the Microsoft Windows NT Server 4.0 Resource Kit. For more information, click to view the following Microsoft Knowledge BaseArticle:

197155 how to terminate an isolated process

Oleinitialize failed (or oleuninitialize failed ).

Regsvr32 must initialize the com library before calling the required com library function and uninitializing the library when it is disabled. If the attempt to initialize or uninitialize the com library fails, these error messages will appear. For example, the ole32.dll file may be corrupted or its version is incorrect.

Loadlibrary ("dllname") failed. getlasterror returns 0x00000485

In winerror. H, 0x00000485 = 1157 (error_dll_not_found) indicates "A library file is not found to run the application ". For example, if the missing. dll file cannot be found after you type regsvr32 missing. dll, the error message is returned.

Loadlibrary ("dllname") failed. getlasterror returns 0x00000002

In winerror. H, 0x00000002 = 2 (error_file_not_found) indicates "the system cannot find the specified file ". In other words, the system cannot find the relevant DLL. For example, if you type regsvr32 icwdial. dll and the tapi32.dll (dependency) is missing, the error message is returned.

Loadlibrary ("dskmaint. dll") failed. getlasterror returns 0x000001f

In winerror. H, 0x000001f = 31 (error_gen_failure) indicates that "the device attached to the system cannot work normally ". This happens if you try to register the Win16. dll file. For example, if you type regsvr32 dskmaint. dll, the error message is returned.

Dllregisterserver (or dllunregisterserver) in dllname failed. ReturnCodeYes: String

Search for a string in winerror. h.

Regsvr32.exe and dependencies

Regsvr32.exe depends on kernel32.dll, user32.dll, and ole32.dll files (in Windows NT, it also depends on msvcrt. dll and advapi32.dll files ). Regsvr32.exe loads the file you are trying to register or unregister and all its dependencies. If necessary files are missing or they are corrupted, the process may fail.

You can use depends.exe to determine the dependencies of the file you are trying to register or unregister. Depends.exe is provided in both the Microsoft Windows 98 resource kit and the Microsoft Windows NT 4.0 Resource Kit support tool.

247024 tools required ded with the Microsoft Windows 98 Resource Kit

12. If you have tried the above problems or the problem occurs during shutdown, If you confirm that you have installed the anti-phishing software of the Industrial and Commercial Bank of China.

Uninstall the software.

13. Restore the "show desktop" shortcut icon

During daily computer operations, you may need to call up the desktop but do not close the Opened Window. Windows adds a shortcut key to display the desktop.Right of "START". Sometimes the desktop icon displayed in the shortcut bar is lost or deleted by mistake. In this case, you can use the regsvr32 command to solve the problem.

Start running regsvr32/n/I: U shell32

14. Restore the Windows Media Player taskbar display

Under normal circumstances, open the Media Player and minimize it. Right-click the blank area of the taskbar and select "Windows Media Player" in the toolbar, in this case, Media Player is displayed on the right side of the taskbar as the smallest player. However, if the "Windows Media Player" option is not available on the ------ "toolbar", the media player cannot be converted to the smallest player and displayed on the taskbar.

Command: regsvr32 "% ProgramFiles % \ Windows Media Player \ wmpband. dll

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.