Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Comment in REG file

Tags:

registry

I know that putting a semicolon at the beginning of a line in a REG file indicates that it's commented. I like to know whether it's possible to put a comment after a line (right-hand of a line)?

like image 843
hamidi Avatar asked Dec 24 '14 06:12

hamidi


People also ask

How do I read a REG file?

To view the contents of a REG file, right-click it in File Explorer and select “Edit.” This will open it in Notepad. Note: If you don't see the “Edit” option, the REG file may be inside a ZIP archive. You may need to extract the REG file from the ZIP archive before continuing.

Can a REG file be a virus?

A registry key, in and of itself, is not capable of causing harm. Neither is a computer virus. A computer virus is a specific type of a computer "program". A computer "program" series of instructions that a computer can follow.

What is a .reg file?

REG files. .REG files (also known as Registration entries) are text-based human-readable files for exporting and importing portions of the registry using an INI-based syntax. On Windows 2000 and later, they contain the string Windows Registry Editor Version 5.00 at the beginning and are Unicode-based.

How do I edit Windows Registry?

There are two ways to open Registry Editor in Windows 10: In the search box on the taskbar, type regedit, then select Registry Editor (Desktop app) from the results. Right-click Start , then select Run. Type regedit in the Open: box, and then select OK.


1 Answers

It's enough to put semicolon before comment on the same line. In another words, semicolon before comment is supported by reg file on a line with registry entry as well as a full-line of comment.

References

  • Minus sign to delete, semicolon to comment and IF/ENDIF mentioned here: MSDN: Registry File (Compact 2013) (Archived here.)
like image 111
hamidi Avatar answered Oct 05 '22 18:10

hamidi