Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

Comments in Registry Script Files

📅 2010-Dec-11 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ comments, registry editor, registry script ⬩ 📚 Archive

 

I find it useful to have comments in Registry Script (.reg) files. The comments should be on their own line and start with a semicolon ; character.

Note that comments are allowed only after the Windows Registry Editor Version line, i.e., the first line of the file! This is because the first line of the .reg file is used by the Registry Editor to determine whether it is a .reg file or not.