Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


How to Make a Registry Key Dump to a Text File

Keywords: 	 reg file

Question:

How do I make a registry key dump to a text file?

Answer:

I have not done this in a while, but the syntax that will do this is:
RegKey='"HKEY_CURRENT_USER\Control Panel\Colors"'
textfile="c:\windows\desktop\Regedit.reg"

RunWait("Regedit.exe",'/e %textfile% %RegKey%')
Note: if either the regkey or textfile contains spaces, they MUST be enclosed in double qoutes only.

Leaving the regkey variable empty will export the entire registry.


Article ID:   W14288
Filename:   How to Make Registry Key Dump to a Text File.txt