Advertisement
cemxokenc

World of Warcraft Backup

Jun 30th, 2024 (edited)
623
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.60 KB | Gaming | 0 0
  1. @echo off
  2. setlocal disabledelayedexpansion
  3.  
  4. REM Get the current date in DD.MM.YYYY format
  5. for /f "tokens=1-3 delims=." %%a in ('echo %date%') do (
  6.     set "day=%%a"
  7.     set "month=%%b"
  8.     set "year=%%c"
  9. )
  10.  
  11. REM Create a folder name according to the format
  12. set "backup_folder=%day%.%month%.%year%"
  13. set "source_folder=d:\World of Warcraft\_retail_\WTF\Account\404582522#1"
  14. set "destination_folder=d:\!_backup\%backup_folder%"
  15.  
  16. REM Create a folder for backup
  17. mkdir "%destination_folder%"
  18.  
  19. REM Copy files and folders
  20. robocopy "%source_folder%" "%destination_folder%" /e
  21.  
  22. echo "Copy completed."
  23. pause
  24.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement