Really learn to use the Regsvr32 command in Windows XP

  
        In the Windows XP operating system, many system functions are related to controls (such as files with extensions DLL, OCX, CPL), and the controls must be registered to implement these corresponding functions. Normally, when the operating system is installed, the control will automatically register. However, due to virus damage, system failure or human cause during use, some control registration information is often lost, causing some functions of the system to malfunction. Once this happens, we can ask the Regsvr32 command to help resolve the registration of the control.

The Regsvr32 command is a utility provided by the Windows system that allows you to register or uninstall system controls to fix lost functionality. The Regsvr32 command runs as a command line. At the same time, the normal operation of the Regsvr32 command requires the support of Kernel32.dll, User32.dll and Ole32.dll files.

Tip: In Windows 2000/Xp system, Regsvr32.exe command file is stored in the "X:\\Winnt\\system32" folder; in Windows 9X system, the command is stored in "X:\\Windows" In the \\system" folder (assuming the system is installed on the X drive).
The use of Regsvr32 commands is very simple, let's take a look at a few examples to see how to use the Regsvr32 command to solve the actual problems encountered.

Example 1: Restoring Windows Xp Image Preview Function

In the process of using Windiws XP, if the image preview control registration information is lost, it will not be able to preview the picture properly. Since the control file corresponding to the image preview function of Windows XP is thurnbvw.dll, just click "Start/Run" in turn, enter "Regsvr32 Thurnbvw. dll" command in the pop-up "Run" dialog box, click "OK" "Button, after execution, a message prompt box will pop up: "DllRegisterServer in Thumbvw.dll succeeded.", the control registration is successful. After restarting the computer, the Windows XP image preview function will be restored.

Tip: When you can't use the thumbnail function that comes with the system, you can fix it by executing the command "Regsvr32 shimgvw.dll" (Windows XP system) or "Regsvr32 thumbvw.dll" (Windows 2000 system).

Example 2: Restoring the Zip function of Windows Xp

Windows XP system can directly support ZIP archives, although the function of processing Zip files is not powerful, but there is no professional solution installed. This feature is also convenient and practical when compressing software.

If the function does not work properly, you can execute the "Regsvr32 Zipfldr.dll" command in the "Run" box according to the example 1, and then restart the computer to recover. Conversely, if you need to uninstall the Zip function of Windows XP, just run "Regsvr32 /u Zipfldr.dll".

From the above two examples, we can see that the Regsvr32 command relies on parameters to register and unload controls. When registering, add the name of the control directly after the command, and when uninstalling, add "/u" to uninstall the installed control. Now let's take a look at the use of Regsvr32 commands in software applications.

Example 3: Let the new version of WMP player appear on the webpage

Some online music sites need to use Windows Media Player to listen to songs, but WMP9 is installed obviously, but only when listening to music Can you see the old version of the WMP player panel, how to make the beautiful WMP9 panel appear?

To solve such a problem, first close the IE browser, click "Start/Run", type "Regsvr32 wmpdxm.dll" in the "Run" dialog box, and click the "OK" button.

Example 4: Resolve FlashGet right-click menu error on webpage

In the browser, if you right click on a download connection and select the "Use Internet Express Download" menu item, normal situation The download task window of FlashGet will pop up, but what if the function is found to be unresponsive?

We can open the FlashGet installation directory first, check whether the jc_link.htm, jc_all.htm and jccatch.dll files exist (if it does not exist, it is recommended to copy it from other machines); if there are these in the directory File, then click "Start /Run", enter "cmd" command to open the "Command Prompt" window, enter "cd c:\\program Files\\Flashget (FlashGet default installation location)" command in the window, switch to FlashGet In the installation path, execute the "Regsvr32 jccatch.dll" and "Regsvr32 fgIEbar.dll" commands respectively, and re-register these DLL files to solve this problem.

Example 5: Let WMP play RM/RMVB files

Many friends like to use Windows Media Player (hereinafter referred to as WMP) player, but it does not support RM/RMVB format, what should I do?

Taking Windows XP as an example, first find the RealMediaSplitter.ax file (this is an RM format plugin) on this CD, and copy the file to the "C:\\WINDOWS\\System32\\" directory; Open the "Run" dialog box, type "regsvr32 C:\\Windows\\System32\\RealMediASPlitter.ax" and click "OK". Then download the decoder, such as RealPack-20050627, after installation, you can use WMP to play RM format audio and video files.

List: Regsvr32 Command Errors and Fixes

When registering a control with Regsvr32.exe, it attempts to load the control and call the DLLSelfRegister function. If this attempt is successful, Regsvr32.exe will display a dialog indicating success. If this attempt fails, Regsvr32.exe returns an error message. The following is a brief introduction to Regsvr32 error messages and possible causes.

Error Cause or Solution

Unrecognized flag:/invalid_flag Invalid parameter or switch combination used in Regsvr32 command line
No DLL name specifIEd. Unspecified DLL required to be registered The dynamic link library file name
Dllname was loaded, but the DllRegisterServer or DllUnregisterServer entry point was not found. Dllname is not a .Dll or .Ocx file, such as typing "Regsvr32 wxyz.exe" will generate the error message

Copyright © Windows knowledge All Rights Reserved