Syntax of .Reg Files.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Tue, 25 Oct 2011 10:50:39 +0300
changeset 1066 f378e6f4e9e7
parent 1065 40c825357158
child 1067 d917d5b238f7
Syntax of .Reg Files.
windows-reg.rst
--- a/windows-reg.rst	Tue Oct 25 10:46:59 2011 +0300
+++ b/windows-reg.rst	Tue Oct 25 10:50:39 2011 +0300
@@ -3,7 +3,34 @@
  Registry files.
 =================
 
+::
+
+  cmd# regedit.exe /s path-to.reg
+
   http://support.microsoft.com/kb/310516
                 How to add, modify, or delete registry subkeys and values by
                 using a registration entries (.reg) file.
 
+Syntax of .Reg Files.
+=====================
+
+A .reg file has the following syntax::
+
+  RegistryEditorVersion
+  Blank line
+  [RegistryPath1]
+  "DataItemName1"="DataType1:DataValue1"
+  DataItemName2"="DataType2:DataValue2"
+  Blank line
+  [RegistryPath2]
+  "DataItemName3"="DataType3:DataValue3"
+
+Deleting Registry Keys and Values.
+==================================
+::
+
+  [-HKEY_LOCAL_MACHINE\Software\Test]
+
+  [HKEY_LOCAL_MACHINE\Software\Test]
+  "TestValue"=-
+