# HG changeset patch # User Oleksandr Gavenko # Date 1319555207 -10800 # Node ID d917d5b238f72201547cbe1bd58cfa79aa05f27e # Parent 3199465de3c352849a52502900fd2c62f9fdd49e# Parent f378e6f4e9e7d21ec9700fda82a1694cc0f25b6f merged diff -r 3199465de3c3 -r d917d5b238f7 windows-reg.rst --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/windows-reg.rst Tue Oct 25 18:06:47 2011 +0300 @@ -0,0 +1,36 @@ + +================= + 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"=- +