Page 1 of 1

Export registry key

Posted: Jun 8th, ’22, 10:27
by Ennovy
I want to have a menu item that exports a registry key:

Can you help me please with the correct syntax, because what I have so far doesn't work
The file delete is executed, but not the second line of the script

Code: Select all

FileDelete p:\werkmap\TheBatBackupRegistrykey.reg
run, "%windir%\System32\REG.EXE EXPORT" HKEY_CURRENT_USER\Software\RIT  p:\werkmap\TheBatBackupRegistrykey.reg 
Thanks,
Peter

Re: Export registry key

Posted: Jun 8th, ’22, 11:06
by Ennovy
I found the correct syntax for my script:

Code: Select all

run, reg export HKEY_CURRENT_USER\Software\RIT  p:\werkmap\TheBatBackupRegistrykey.reg /y
Have a nice day!
Peter