Using Reg Files to Automate Registry Changes

Registry Easy Cleaner

Advanced Registry Cleaner PC Diagnosis and Repair

Get Instant Access

The . reg files created by the Export command in Registry Editor are plain text, suitable for reading and editing in Notepad or any similar editor. Therefore, they provide an alternative method for editing your registry. You can export a section of the registry, change it offline, and then merge it back into the registry. Or you can add new keys, values, and data to the registry by creating a .reg file from scratch and merging it. A .reg file is particularly useful if you need to make the same changes to the registry of several different computers. You can make and test your changes on one machine, save the relevant part of the registry as a .reg file, and then transport the file to the other machines that require it.

Figure 22-21 shows a .reg file. In this case, the file was exported from the HKCU\Software\ Microsoft\Windows\CurrentVersion\Explorer\Advanced key, shown in Figure 22-22.

File Edit Format View Help Windows Registry Editor version 5.00

[HKEY_CURRENT_USER\S0ftware\Microsoft\windowsXcurrentversion\Expl orer\Advanced]

"Start_searchFiles"=dword:00000002

"serverAdmi nui"=dword:00000000

"showtompcolor"=dword:00000001

"Hi deFi1eExt"=dword:00000001

"DontPrettypath"=dword:00000000

"showlnfoTnp"=dword:00000001

"HideIcons"=dword:00000000

"MapNetDrvBtn"=dword:00000000

"webvi ew"=dword:00000001

"FiIter"=dword:00000000

"superHidden"=dword:00000001

"separat eProcess"=dword:00000000

"Autocheckselect"=dword:00000000

"Iconsonly"=dword:00000000

"showTypeoverlay"=dword:00000001

"ListvnewAlphase!ect"=dword:00000001

"Li stvi ewshadow"=dword:00000001

"TaskbarAnimations"=dword:00000001

"StartMenulnit"=dword:00000004

"AlwaysshowMenus"=dword:00000001

"DisablePrevi ewDesktop"=dword:00000000

"Hidden"=dword:00000001

"searchNonlndexed"=dword:00000001

"TaskbarGlomLevel"=dword:00000000

"Task bar sizeMove"=dword:00000000

"Task bar small I cons"=dword:00000000

"start_PowerButtonAction"=dword:00000002

"showsuperHidden"=dword:00000000

Figure 22-21 A .reg file is a plain-text file suitable for offline editing . This .reg file was exported from the key shown in Figure 22-22.

gf Registry Editor

File Edit View Favorites Help

Advanced l j ApplicationDestinations Jj AutoComplete t> JJ AutoplayHandlers t> Jj BitBucket

JJ CabmetState t> JJ CD Burning t> JJ CIDOpen t> JJ CID Save 0 JJ CLSID t> JJ ComDlg32 t> ^ Discardable t> X) FileExts t> JJ FolderTypes t> ^ HideDesktopIcons jj LowRegistry t> ^ MenuOrder t> ^ Modules t> Jj MountPoints2

Name

Type

® (Default)

REG SZ

.no Always Sh owM e n u s

REG D.

J^AutoCheckSelect

REG_D.

4!°|D¡sablePrev¡ewDesktop

REG_D.

JKjlDontPrettyPath

REG_D.

Filter

REG D.

£¡]H¡dden

REG_D.

^¡lHideFileExt

REG_D.

£¡]H¡deIconí

REG_D.

jSSlconsOnly

REG D.

jjo L i stvi ewAI p h a Select

REG_D.

L ¡ stvi ewSh a d ow

REG_D.

JKjlMapNetDrvBtn

REG_D.

4!°|SearchNonIndexed

REG D.

4!°|SeparateProcess

REG_D.

£¡]ServerAdm¡nUI

REG_D.

4!°|ShowCornpColor

REG_D.

Compute r\HKEY_CURRENT_USE R\Softwa re\M ¡ c ro s oft\W¡ n d ow AC u rre ntVe rí ¡ o n\Exp I o re r\Adva n c e d

Figure 22-22 This key's name, values, and data are recorded in the .reg file shown in Figure 22-21.

Was this article helpful?

0 0
Digital Cancers

Digital Cancers

Get All The Support And Guidance You Need To Be A Success At Protecting Your PC. This Book Is One Of The Most Valuable Resources In The World When It Comes To The Damaging Facts About Computer Viruses.

Get My Free Ebook


Responses

  • samsa
    How to automate registry changes in windows 7?
    7 years ago
  • leonard
    What is CIDOpen in registry?
    4 years ago

Post a comment