reg files : Java Glossary


reg files


Instead of using regedit.exe you can compose text files to make modifications to the registry. This method is safer, and you can download fixes from reputable websites rather than making changes by the seat of your pants.


Here is the format of a *.reg file:

Blank line
Blank line

Lines in the *.reg file are added to or modified in the registry. If you put a minus sign on the beginning of a line, it means remove that entry. Everything after a ; on a line is a comment.

The *.reg file must be stored, not in UTF-8, but UTF-16LE with a BOM (Byte Order Mark).

Using regedit.exe you can back up parts of the registry with File, Export. It is a good idea to back up the part of the registry you are planning to patch.

To merge your *.reg file into the registry, run under administrator, right click on it, and click merge.


Here is a typical *.reg patch, one that fixes explorer if it loses the ability to handle double clicks on directory names:

This page is posted
on the web at:

Optional Replicator mirror
on local hard disk J:

Canadian Mind Products
Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number