Jump to content

back up one registry file create .bat action


albatro44

Recommended Posts

Can I back up file registry file automate (create .bat action )

 

HKEY_CURRENT_USER\Software\Foxit Software\Foxit Reader 7.0\Preferences\History

 

-------

sorry my bad english

Link to comment
Share on other sites


  • Replies 3
  • Views 682
  • Created
  • Last Reply

For example full registry backup

@echo off
setlocal
set BackupFolder=C:\Registry Backup
if not exist "%BackupFolder%" md "%BackupFolder%"
for %%a in (HKLM HKCU HKCR HKU HKCC) do (
	echo Exporting %%a to %BackupFolder%\%%a.reg ...
	if exist "%BackupFolder%\%%a.reg" del "%BackupFolder%\%%a.reg"
	%Systemroot%\system32\reg.exe export "%%a" "%BackupFolder%\%%a.reg"
)
pause

If use Notepad, "Save as"  RegistryBackup.cmd or RegistryBackup.bat, All Files (*.*), Encording UTF-8
If is needed, may add command to open Folder.

Link to comment
Share on other sites


Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...