Registry backup

(imported topic written by BenUK77791)

Hi,

I want to be able to use the DOS reg copy command to back up a registry key.

I’m pretty sure I am missing some quotes etc but the action script is failing.

DOS Reg copy “HKCR\CLSID{D51BD5A0-7548-11CF-A520-0080C77EF58A}” “HKCR\CLSID{D51BD5A0-7548-11CF-A520-0080C77EF58A}_Backup” /s /f

DOS Reg delete “HKCR\CLSID{D51BD5A0-7548-11CF-A520-0080C77EF58A}” /f

I know I can use the BigFix regdelete command but am unable to find a Backup equivilent.

Any assistance appreciated.

(imported comment written by jessewk)

You need to escape the curly braces because they are reserved characters in the action language to denote relevance substitution. Try this (note the double left braces):

DOS Reg copy “HKCR\CLSID{{D51BD5A0-7548-11CF-A520-0080C77EF58A}” “HKCR\CLSID{{D51BD5A0-7548-11CF-A520-0080C77EF58A}_Backup” /s /f

DOS Reg delete “HKCR\CLSID{{D51BD5A0-7548-11CF-A520-0080C77EF58A}” /f

Jesse