DIY batch file Registry modification takes effect immediately

  
        

In the process of using the computer, in order to make the system more suitable for their own usage habits, it is often necessary to double-click the REG file into the registry to implement an optimization setting for the system. However, after the REG file is double-clicked and imported into the registry, in order to be effective immediately, it is usually necessary to end and reload the explorer.exe process, logout or restart the system.

Think about it, this is really a very troublesome thing! Then, can you implement the REG file double-click to import into the registry to take effect immediately? The answer is certainly yes. We just need to convert the REG file to a BAT file and double-click it to run it. Below, the author will tell you how to achieve.

First create a batch file called "REG to BAT.bat", the contents of which are as follows.

Then save the batch file to a directory on the hard disk (for example, under the directory "F:BAT"), and finally convert the extension to a batch file. The REG registry file is copied to the directory "F:BAT".

After completing the above operation, double-click the “REG to BAT.bat” file in the “F:BAT” directory, wait a moment, and a directory named "ldquo;reg." will be generated in the directory. The batch file of bat”; then double-click to run it, the batch file < reg.bat” will write the relevant content to the registry, and finally automatically end and reload the explorer.exe process. In this way, the content written to the registry can take effect immediately.

This method is suitable for various Windows systems such as Windows XP, Vista, and Windows 7.

Copyright © Windows knowledge All Rights Reserved