Help with RegEdit.exe ...
Hello to all Forum Members ;
I'm currently working on a project in which I need to export a registry key to a specific .reg file ; actually this is only a part of the huge project so I don;t want to spend much of the time programming the same using RegAPI. Hence, I decided to use RegEdit with /e switch.
The syntaxt which I'm following is ...
Shell "regedit /e <FilePathName.reg> <RegKey to Export>"
The problem is, RegEdit is not exporting the key if that belongs to HKEY_LOCAL_MACHINE and HKEY_CLASS_ROOT. I want my code to be able export keys which may belong to these two redefined members of Registry.
Please tell me if there is any work-around. One thing I think off is ... transfering the required key from HKEY_LOCAL or HKEY_CLASS to HKEY_CURRENT_USER and then perform the export action. Later delete this temporarily transfered key from CURRENT_USER. But while attempting to do this, I found that its still much time consuming job.
Please tell me the solution for this problem ...
|