Windows registry application tips four

  

1. Quickly delete key values ​​

Normally we want to delete a key or key in the registry, are to open the "Registry Editor" Then locate the relevant branch to delete. But what if we want to do the same for multiple computers? Or does this deletion need to be done often? This is inconvenient. In fact, you can delete the operation by making the delete operation into a *.reg file and double-clicking the *.reg file.

To delete a registry branch: Open the "Registry Editor", export the branch to be deleted as a *.reg file, and open the file with "Notepad", which will be shaped like "[HKEY_LOCAL_MACHINE\\SOFTWARE\\ The field of ...]" is changed to "[-HKEY_LOCAL_MACHINE\\SOFTWARE\\...]".

Delete a registry key: Also export the key as a *.reg file, open the file with "Notepad", and change the key value of the key to be deleted to "-", if you want to delete A key named "cfan" is modified to look like "cfan"=-.

2. Fix the registry association of the EXE file

After the Trojan, the most troublesome thing is not the killing, but the system setting recovery process after the killing, because the Trojan is generally The registry is more interesting, and after the killing, the anti-virus software will not automatically repair the registry, so it often happens that the anti-virus can not be used normally. The registry association of the EXE file is the most typical example. How to fix it quickly?

(1) Since the EXE file cannot be run, and Regedit.exe needs to be used to modify the registry, first rename the Regedit.exe file in the C:\\Windows directory to Regedit.com and run it. Regedit.com launches the Registry Editor.

(2) Locate [HKEY_CLASSES_ROOT\\.exe] and change the "default" key value in the right window to "exefile".

(3) Expand the [HKEY_CLASSES_ROOT\\exefile\\shell\\open\\command] branch, and then change the "default" key value in the right window to ""%1" %*" (not outside quotation marks).

(4) Close the "Registry Editor", run an EXE file to check whether it is normal, if not, you can click here to download an "EXE File Association Fix" file, extract the file into the registry after decompression Just in the middle.

3. Self-made Net Transport 128 thread patch

Step 1: Click "Start → Run", enter "Regedit.exe" (without quotes) Enter, open the "Registry" Editor", go to

[HKEY_CURRENT_USER\\Software\\Xi\\NetTransport 2\\Download].

Step 2: Create a new DWORD value in the edit box on the right and name it "Max Threads". Double-click this value, enter 128 in "Value", and select "16" in "Base" system".

Step 3: Select the menu "File → Export", "Save as type" is set to "Win9x/NT4 registration file" (The registry file exported using the default save type in Windows 2000/XP cannot be used in Imported under Windows 9x), saved as 128threads.reg.

Step 4: Copy a copy of 128threads.reg and name the new file uninstall128.reg. Open the file with "Notepad" and set the [HKEY_CURRENT_USER\\Software\\Xi\\NetTransport 2\\Download] subkey. The following ""Max Threads"=dworD:00000128" is changed to ""MaxThreads"=-" (excluding the outer Chinese quotation marks). Setting the

value to "-" in the registry file means Delete the key value. Just double-click to import 128threads.reg to load a 128-thread patch, and double-click to import uninstall128.reg to restore the state before the patch is not installed.

4. Automatic backup of the registry

[HKEY_CURRENT_USER] and [HKEY_LOCAL_MACHINE] these two branches are the most common targets of hackers, backdoors, viruses and malicious websites, once these two branches The data under the virus is modified by the virus. It is very difficult to check the modified data one by one. It is quite troublesome to manually input the command backup. How to quickly back up and restore the system that is "hijacked"?

Step 1: Open "Notepad", enter the following and save as myregbak.bat:

@echo off

set mypath="C:\\myfolder \\"%date%""

if exist "%mypath%" rd /s /q "%mypath%"

md "%mypath%"

cd " %mypath%"

reg export hkcu myreg.reg

reg export hklm sysreg.reg

The meaning of this script is: first define a variable and set it to C:\\myfolder A directory named after the date of the day. If the directory does not exist, create this directory based on the variable value. Then transfer the current directory to this directory, if the user's personal registry backup file myreg.reg already exists, delete it and re-export the user's personal registry data to the file. If the system's registry backup file sysreg.reg already exists, delete it and re-export the system's registry data to the file.

Tips

If you are not an administrator, you do not need to back up the system registry data (do not enter line 7). The batch script provided above is tested under Windows XP, and the drive, path and file name can be customized.

Step 2: Create a shortcut to the myregbak.bat batch file on the desktop, taskbar, and start menu, and manually back up at any time.

Step 3: Click Control Panel→Task Schedule→Add Task Schedule. Select the myregbak.bat batch file in the wizard to create the Backup Registry task. Right-click the Backup Registry task icon, select Properties, click the Schedule tab, and choose a daily or regular backup to allow the computer to automatically back up the registry.


Copyright © Windows knowledge All Rights Reserved