May. 31st, 2007
(no subject)
May. 31st, 2007 09:34 amPartly I write these for me, because I don't want to forget. But, these may be useful for others.
Anyways. To export branches of the Registry via the command line:
HKR, HKCU, HKLM, HKU, HKCC - natch.
To delete registry keys using a .reg file:
This is not recursive. If Test has a subthing of TestsTest, then this works:
Make sure to save the file as ASCII or DOS or summat.
Anyways. To export branches of the Registry via the command line:
reg export HKCU C:\HKCU
HKR, HKCU, HKLM, HKU, HKCC - natch.
To delete registry keys using a .reg file:
[-HKEY_CURRENT_USER\Software\Test\]
This is not recursive. If Test has a subthing of TestsTest, then this works:
[-HKEY_CURRENT_USER\Software\Test\TestsTest]
[-HKEY_CURRENT_USER\Software\Test\]
Make sure to save the file as ASCII or DOS or summat.