I'm trying to run a batch file which backs up certain files and the HKLM of the registry, got the files fine using robocopy but struggling using reg export for the registry. I can get it to do the task once, but when I try again it will not overwrite the existing file. Checked on MS site and it says to put in /y at the end and it should work, but I get an error "the system was unable to find the specified registry key or value".
Full command : reg export hklm c:\regtest.reg/y, I also tried it with a space before the /y and get "invlaid command line parameters".
Thanks in advance for any help.
Full command : reg export hklm c:\regtest.reg/y, I also tried it with a space before the /y and get "invlaid command line parameters".
Thanks in advance for any help.