Advertisement
Guest User

Scrandox's WoW Interface Backup Script

a guest
Jun 9th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 1.91 KB | None | 0 0
  1. @echo off
  2. REM // This prevents the REM (Comments) from popping up in a CMD Window
  3. for /f "skip=1" %%i in ('wmic os get localdatetime') do if not defined fulldate set fulldate=%%i
  4. REM // This defines the variable for "fulldate" which is used create a format of YYYY:MM:DD in the folder name.
  5. set year=%fulldate:~0,4%
  6. REM // Extracts the year from the FullDate Variable
  7. set month=%fulldate:~4,2%
  8. REM // Extracts the month from the FullDate Variable
  9. set day=%fulldate:~6,2%
  10. REM // Extracts the day from the FullDate Variable
  11. set foldername=%year%.%month%.%day%
  12. REM // Creates a new variable called foldername to store the date in the YYYY:MM:DD format
  13. md "C:\Users\<USERNAME>\Documents\WoW Backups\%foldername%"
  14. REM // Creates a new directory at the location defined - %foldername% is the variable from earlier. Example: md "C:\Users\Scrandox\Documents\WoW UI Backups\%foldername%"
  15. xcopy "C:\Program Files (x86)\World of Warcraft\_retail_\Interface" "D:\Users\Matthew Greggs\Documents\WoW UI Backups\%foldername%\Interface" /O /X /E /H /K /I
  16. REM // The first path is the location of the Interface folder, The second path is the location to paste the contents into which we created earlier. Please ensure you include the \Interface after %foldername% on the second path. Example: "C:\Program Files (x86)\World of Warcraft\_retail_\Interface" "C:\Users\Scrandox\Documents\WoW UI Backups\%foldername%\Interface" /O /X /E /H /K /I
  17. xcopy "C:\Program Files (x86)\World of Warcraft\_retail_\WTF" "D:\Users\Matthew Greggs\Documents\WoW UI Backups\%foldername%\WTF" /O /X /E /H /K /I
  18. REM // The first path is the location of the WTF folder, The second path is the location to paste the contents into which we created earlier. Please ensure you include the \Interface after %foldername% on the second path. Example: "C:\Program Files (x86)\World of Warcraft\_retail_\WTF" "C:\Users\Scrandox\Documents\WoW UI Backups\%foldername%\WTF" /O /X /E /H /K /I
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement