Rob van der Woude's Scripting Pages
Powered by GeSHi

Source code for fileazebackup.bat

(view source code of fileazebackup.bat as plain text)

  1. @ECHO OFF
  2. :: This batch file makes a backup of Fileaze's settings, including jobs,
  3. :: by exporting the registry key "HKEY_CURRENT_USER\Software\Resolware"
  4. :: to a .REG file named "FileazeBackup.reg".
  5.  
  6.  
  7. :: If a previous backup exists, rename it to "FileazeBackup.old"
  8. :: after removing an existing "FileazeBackup.old" version.
  9. IF EXIST "FileazeBackup.reg" (
  10. 	ATTRIB -H -R -S "FileazeBackup.*"
  11. 	IF EXIST "FileazeBackup.old" DEL "FileazeBackup.old"
  12. 	REN "FileazeBackup.reg" *.old
  13. )
  14.  
  15.  
  16. :: Export the registry key to "FileazeBackup.reg"
  17. START REGEDIT.EXE /E "FileazeBackup.reg" "HKEY_CURRENT_USER\Software\Resolware"
  18.  
  19.  
  20. :: Done
  21. GOTO:EOF
  22.  

page last modified: 2024-04-16; loaded in 0.0159 seconds