Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal disabledelayedexpansion
- REM Get the current date in DD.MM.YYYY format
- for /f "tokens=1-3 delims=." %%a in ('echo %date%') do (
- set "day=%%a"
- set "month=%%b"
- set "year=%%c"
- )
- REM Create a folder name according to the format
- set "backup_folder=%day%.%month%.%year%"
- set "source_folder=d:\World of Warcraft\_retail_\WTF\Account\404582522#1"
- set "destination_folder=d:\!_backup\%backup_folder%"
- REM Create a folder for backup
- mkdir "%destination_folder%"
- REM Copy files and folders
- robocopy "%source_folder%" "%destination_folder%" /e
- echo "Copy completed."
- pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement