Regsvr32 was first recognized to solve system problems -- reprinted

Source: Internet
Author: User
Tags ole zip folder
Certainly, Regsvr32 is no stranger to everyone. It can always be seen in some computer tutorials or computer magazines, but such a high appearance rate "Little Star" is very mysterious in the eyes of many of us. It was rarely introduced in general articles, at most, I just gave a few articles to explain how to use it to solve common problems. Many of my friends may have used Regsvr32 many times under the guidance of some articles, however, I still don't know about it. Today, I will use this article to dispel the doubts in my mind and take you to get to know this Regsvr32.

  Background and functions of Regsvr32

Regsvr32 is an embedded program in Windows. It exists not only in Windows 2000/XP, but also in Windows 98. Its main function is to register or uninstall dynamic link library files (DLL) and embedded controls (OCX). Do not underestimate it. With it, A lot of software or operating system problems can be solved.

  Basics  

When we talked about DLL and OCX just now, it is estimated that such a problem will occur in the hearts of many readers. What do these two things mean? What exactly can they do? Don't worry. Let me hear you come here.

DLL file: The full name of the DLL file is Dynamic Link Library. The Chinese name is "Dynamic Link Library File ". In Windows, a DLL file can complete a function just like an EXE file, but it cannot run as independently as an EXE file. It must be called by other programs, it is also very important for program execution. Most programs or system components must be linked to DLL files during execution to run normally. In other words, the DLL file is like a common function library in the database. Every designer can call them in their own program. In this way, not only do you not need to write some basic functions (because these functions have been completed by DLL files), but also make the program smaller. Therefore, if a DLL file is lost, a software or system module may fail and cannot work properly.

OCX file: The full name of OCX file is Object Linking and Embedding (OLE) Control Extension. The Chinese name is "embedded Object Control". Its role is actually very similar to the DLL file just mentioned, in fact, we are already very familiar with the so-called OLE. Simply put, it is like using Excel Data in Word, and embedding image files in wordboards. For example, the clipboard is like a simple data sharing, while OLE is an "Object sharing ".

Just now we talked about Regsvr32's function of registering and detaching DLL files. Now there is another problem that bothers us. Since DLL files play the role of a public function library, why can't we call it directly in a program and register it again? In fact, the registration of DLL files here is like the first time we went to school. Although you are sitting in the classroom, if you did not write your files, the teacher would not know you, naturally, you will not be found. Similarly, if the DLL file is not registered, the system registry does not have the relevant information about the DLL file. Although it already exists on our hard disk, when it is called, the system cannot find this DLL file and can only report that this DLL does not exist. Therefore, we need to register the DLL file at this time.

Tips] Windows system DLL has been registered during installation, so you do not need to register it. However, if the system cannot identify these DLL files in some cases, you still need to manually register them again.

 

 

 

  Regsvr32 Command Format  

After talking about the above, many of my friends may have heard it. Don't worry. It's much easier to understand the above hacker egsvr32 command.

As you know, all commands must have a format, and Regsvr32 is no exception. Take Windows XP as an example. In the "Start" menu → "run" column, run the "CMD" command, open the command prompt line window, enter the Regsvr32 command, and press Enter, the Command Format of Regsvr32 is "Regsvr32 [/u] [/s] [/n] [/I [: using line] dll file name ",

The preceding figure shows that the Regsvr32 command has four parameters:

/S: A prompt box Indicating successful operation is not displayed after registration or uninstallation is successful

/U: uninstall installed controls or DLL files

/N: Do not call DLLRegisterServer. Note that this parameter should be used with/I.

/I: Call DLLInstall and pass it an optional [offline line]. It is used to uninstall the DLL when/u is used.

Commands are often hard to understand. Next we will use an instance to learn more about the Regsvr32 command format. For example, we want to register a shmedia file stored in the C: \ Folder directory. dll dynamic link library file, the command to be executed should be "Regsvr32 c: \ folder \ shmedia. dll, and if it is easier to uninstall after registration, execute the command "Regsvr32/u c: \ folder \ shmedia. dll. 2 is the prompt window for normal task completion

 

 

 

  Common error messages

After using the Regsvr32 command for a long time, you may often see a variety of error prompts. Here I have found some representative errors to help you analyze and analyze them.

  Error 1: the path of the DLL file is not specified.

This type of error is common. Generally, when registering a non-system DLL file, the reason is that the Regsvr32 program cannot find the specified DLL file in the default path and cannot complete the registration normally. The solution is also very simple. You only need to specify the specific storage path of the DLL file in the command. For example, "Regsvr32 c: \ folder \ abc. dll" is a normal command.

  Error 2: the file type to be registered is incorrect.

This type of error is rare, but it is easy to appear on new users. The reason is that the file to be registered is not a normal DLL file or OCX file, and Regsvr32 cannot complete registration at all. The solution is to specify a normal DLL file or OCX file. For example, if the original command is "Regsvr32 c: \ abc \ abc.txt", the correct command should be "Regsvr32 c: \ abc. dll "(of course, you have to ensure this abc. the dll file already exists and is completely correct)

  Error 3: The DLL file name is not specified in the command.

This error is the same as in the previous example. The reason for this error is that the DLL file name is not specified, so Regsvr32 naturally cannot know what operations to perform, this prompt is displayed. The solution is to specify the DLL file or OCX file to be operated.

 

 

 

  Instance Drill

After talking about this, we should be clear about the functions of this Regsvr32 command. Let's end this article with several common examples below?

  Example 1: uninstall the ZIP folder display function of Windows XP

You may know that the ZIP folder (compressed folder) can be displayed by default in Windows XP, but the problem is that most of your friends have been using third-party decompression software WinRAR or WinZip, in this way, the default display function of the ZIP folder in XP becomes a decoration, which wastes a lot of system resources. In fact, we can use the Regsvr32 command we just learned to uninstall it.

Enter the Command Prompt window and run Regsvr32/u zipfldr. dll. Of course, if you want to enable it again after uninstalling it (it is estimated that few friends will do this), you just need to execute the Regsvr32 zipfldr. dll command again.

  Example 2: uninstall the Windows Image preview function

The image preview function is similar to the ZIP file display function mentioned above. Under the threat of powerful third-party image software, the image preview function provided by Windows is basically the same as that provided by Microsoft, there is no advantage. We can naturally "unload it without discussion ".

Enter the Command Prompt window and execute the command: Regsvr32/u shimgvw. dll. Of course, the method for re-enabling is the same as that for Regsvr32 shimgvw. dll.

  Example 3: repair damaged IE browser

Many of my friends have encountered this problem. The IE link clicking is invalid and the new window cannot be opened normally. According to the previous practice, reinstalling IE will certainly solve the problem, however, this method requires both time and effort. Instead, you can use the Regsvr32 command to try it.

Enter the Command Prompt window and run Regsvr32 actxprxy. dll. After the normal report window pops up, run the command regsvr32 shdocvw again. dll, and then wait for the normal report to pop up, continue to execute the command: Regsvr32 Oleaut32.dll. After the final normal report pops up, you can try again to open IE, how? Be sure to surprise you.

  Example 4: uninstall XP's image preview function is also very simple

Like the image preview function mentioned above, XP's image preview function (that is, the video file preview function) allows us to freely register and Uninstall Images.

Enter the Command Prompt window and run Regsvr32/u shmedia. dll can successfully uninstall XP's default image preview function, of course, remove the/U parameter, that is, Regsvr32 shmedia. the dll command can re-register the image preview function.

[Tips] All the above instances have reversed these system functions so that the system cannot use these functions and has not deleted any system files, therefore, we can easily re-register these features, and the entire process is reversible. Please feel free to try them out.

  Conclusion

At this point, Regsvr32 has finished introducing it to you. I don't know if it will help you. In fact, Regsvr32 is more useful than the above several instances. It can also repair damaged Windows automatic updates and damaged "My documents ", you can also enable the Windows Media Player to support file formats such as RM. Due to limited space, I will not introduce them here. If you are interested, you can refer to other related articles. Of course, if you have a better method, remember to share it with everyone.

Appendix: Regsvr32 Command Format  

After talking about the above, many of my friends may have heard it. Don't worry. It's much easier to understand the above hacker egsvr32 command.

As you know, all commands must have a format, and Regsvr32 is no exception. Take Windows XP as an example. In the "Start" menu → "run" column, run the "CMD" command, open the command prompt line window, enter the Regsvr32 command, and press Enter, the Command Format of Regsvr32 is "Regsvr32 [/u] [/s] [/n] [/I [: using line] dll file name ",

The preceding figure shows that the Regsvr32 command has four parameters:

/S: A prompt box Indicating successful operation is not displayed after registration or uninstallation is successful

/U: uninstall installed controls or DLL files

/N: Do not call DLLRegisterServer. Note that this parameter should be used with/I.

/I: Call DLLInstall and pass it an optional [offline line]. It is used to uninstall the DLL when/u is used.

Commands are often hard to understand. Next we will use an instance to learn more about the Regsvr32 command format. For example, we want to register a shmedia file stored in the C: \ Folder directory. dll dynamic link library file, the command to be executed should be "Regsvr32 c: \ folder \ shmedia. dll, and if it is easier to uninstall after registration, execute the command "Regsvr32/u c: \ folder \ shmedia. dll. 2 is the prompt window for normal task completion

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.