How do you include comments in .reg files?

L

LoctOut

Guest
With so many registry tweaks around, I sometimes lose track of what some of my .reg file tweaks are supposed to do or undo.

I was wondering how you can include a comment that reminds the user what the .reg file does, kinda like we used to do using "REM" statements?

You could even make up new .reg files and include the original values as coments, so you have old and new in one file.
 
To include comments in a registry file, place a
semicolon (;) at the beginning of the line, as shown below:



; This will delete the key below because of the - sign
[-HKEY_LOCAL_MACHINE\SOFTWARE\SavillTech\key]
 
thanks yoyo

so if this is my .reg file.........

REGEDIT5

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Anchor Underline"="yes"
"Cache_Update_Frequency"="Once_Per_Session"
"Display Inline Images"="yes"
"Do404Search"=hex:01,00,00,00
"Local Page"="C:\\WINDOWS\\SYSTEM\\blank.htm"


and I want to add the comment "This key does nothing" I would do it like this......?


;This key does nothing
;
REGEDIT5

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Anchor Underline"="yes"
"Cache_Update_Frequency"="Once_Per_Session"
"Display Inline Images"="yes"
"Do404Search"=hex:01,00,00,00
"Local Page"="C:\\WINDOWS\\SYSTEM\\blank.htm"
 
Would try it this way:

Windows Registry Editor Version 5.00

; This key does nothing
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main]
"Anchor Underline"="yes"
"Cache_Update_Frequency"="Once_Per_Session"
"Display Inline Images"="yes"
"Do404Search"=hex:01,00,00,00
"Local Page"="C:\\WINDOWS\\SYSTEM\\blank.htm"
 
Well... I would rather keep all my reg files clean and create a text file and folder for each reg edits. That way, I can see the text without having to look in reg files.

This way, I keep it all organised! :)
 
or you could just name the reg file something that you will know what it does lol
maybe as Jason Said write a txt file with filenames/disc incase you forget
 

Members online

No members online now.

Latest profile posts

Also Hi EP and people. I found this place again while looking through a oooollllllldddd backup. I have filled over 10TB and was looking at my collection of antiques. Any bids on the 500Mhz Win 95 fix?
Any of the SP crew still out there?
Xie wrote on Electronic Punk's profile.
Impressed you have kept this alive this long EP! So many sites have come and gone. :(

Just did some crude math and I apparently joined almost 18yrs ago, how is that possible???
hello peeps... is been some time since i last came here.
Electronic Punk wrote on Sazar's profile.
Rest in peace my friend, been trying to find you and finally did in the worst way imaginable.

Forum statistics

Threads
62,015
Messages
673,494
Members
5,621
Latest member
naeemsafi
Back