Export registry key

Discussion, questions and support.
Post Reply
User avatar
Ennovy
Posts: 70
Joined: Mar 18th, ’14, 08:46

Post by Ennovy » Jun 8th, ’22, 10:27

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
User avatar
Ennovy
Posts: 70
Joined: Mar 18th, ’14, 08:46

Post by Ennovy » Jun 8th, ’22, 11:06

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
Post Reply