backup
Then, immediately reimport the Registry patch you just made, and delete the
.reg patch file. You??™ll end up with two identical keys right next to each other:
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Run.backup
At this point, you can go ahead and mess with the Run key to your heart??™s content,
and even use the nearby Run.backup key as a handy reference. If you ever
need to restore your backup??”either today or six months from now??”just
delete the Run key and then rename Run.backup to Run.
See Chapter 2 for a quick way to make a local backup of files you??™re working on.
Registry Tasks and Tools | 119
The Registry
Now, other than saving time by not exporting more than you have to, why is
it important to know how Windows stores the Registry data? Because if you
use a slightly more advanced approach when you back up the Registry,
you??™ll have a backup you can restore even if Windows won??™t start. Here??™s
how you do it:
1. Open a plain-text editor (e.g., Notepad).
2. Type the following into a blank document:
if exist C:\Backups\COMPONENTS.OLD del C:\Backups\COMPONENTS.OLD
if exist C:\Backups\SAM.OLD del C:\Backups\SAM.OLD
if exist C:\Backups\SECURITY.OLD del C:\Backups\SECURITY.OLD
if exist C:\Backups\SOFTWARE.OLD del C:\Backups\SOFTWARE.OLD
if exist C:\Backups\SYSTEM.OLD del C:\Backups\SYSTEM.OLD
if exist C:\Backups\NTUSER.OLD del C:\Backups\NTUSER.
Pages:
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185