Registry file specifications

このサイトを検索 | Search this site
,Japan

There are two ways to make changes to the registry database.

[PLAN]

  1. Use Registry Editor
  2. Use Registry File

If the value to change is simple,
For example, changing value=0 to value=1.

[procedure]
  1. Open the backed up registry file (-.reg) with a text editor
  2. Change the corresponding value and save
  3. Double-click the modified .reg file to reflect it in the registry
  4. End of procedure

Here are some things to keep in mind:

Create the registry file with the correct character code

Well, the main subject.

The registry file can be edited with Notepad attached to Windows.

This article describes the character code and character code options that are required to function as a registry file.

[Tools to use]

  1. Notepad
  2. Sakura editor


Registry file requirements

Registry file-When creating .reg, you need a text editor such as Notepad that supports the following formats.

.reg file requirements
itemSet valueExplanation
extension.regExtension recognized as a registry file
Character codeUTF-16
 (Unicode)
Little endian
LE: Little Endianness
Character code optionBOMMalfunction prevention measures
BOM: Byte Order Mark

If UTF-16BE (Big Endian|BE: Big Endianness) is set as the character code, it will not operate properly.

Concrete example

The setting screens of Sakura Editor and Notepad are posted.

Notepad of Windows 10 has two types because the choice of character code when saving the file has changed.
Sakura editor
Sakura Editor> Save As

Select UTF-16 to BOM Put a check.

Sakura Editor: UTF-16, BOM

Notepad
*Windows 10 example

Notepad> Save as

Pattern A
Select Unicode.

Notepad: Unicode

Pattern B
Select UTF-16 LE.

For example, the following screen is displayed on Windows 10 Pro May 2019 Update, v1903.18362.356.

notepad-utf-16le

How to start Registry Editor

  • Start the execution by specifying the file name ( Windows + R )
  • Type regedit in the box next to your name
  • OK Click on the

regedit

Summary

[Registry file requirements]

Character codeeditor
UTF-16 + BOMSakura editor
UnicodeNotepad (old)
UTF-16 LENotepad (new)

If you create a registry file (-.reg), you can change the registry value just by double-clicking the file.

For example, it is used for the following purposes.
  1. Export the registry key before making any changes
  2. Make changes to registry values
  3. Backed up-double-click the .reg file to restore the original values

The following is a snapshot when exporting the [sakura.exe] key.

export
SC2
Windowsランキング 将棋ランキング スマホ・携帯ランキング にほんブログ村 IT技術ブログ ライフハックへ にほんブログ村 その他趣味ブログ 将棋へ

このサイトを検索 | Search this site