Ok, I was not clear enough. The 'ExportFile.txt should be replaced with the name and path of the file that you want the registry to be exported to. The 'PathToExport' should be replaced with the path to the key you want to export (i.e. "HKEY_LOCAL_MACHINE\Software\Microsoft"). If you want to export the entire registry to a file names RegExport.txt in the directory e:\backup\registry, the command would be:
Regedit /e e:\backup\registry\RegExport.txt
If you only wanted to export HKLM\Software, the command would be:
Regedit /e e:\backup\registry\RegExport.txt "HKEY_LOCAL_MACHINE\Software"
[blue]"Well, once again my friend, we find that science is a two headed beast. One head is nice, it gives us aspirin and other modern conveniences,...but the other head of science is BAD! Oh, beware the other head of science, Arthur; it bites!!" - The Tick[/blue]