Advertisement
waterlgndx

FFXIV Character Asset Backup (For use with online drive)

Jul 19th, 2017
98
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.78 KB | None | 0 0
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. rem Make sure you change the directories below to where your character files will be
  4. rem the paths should both end with an \
  5. set target_Path="C:\Users\Owner\Documents\My Games\Final Fantasy XIV - A Realm Reborn\"
  6. set source_Path="C:\owncloud\ffxiv\chr\"
  7. set sea_String="%target_Path:~1,-2%\FFXIV_CHR*"
  8. echo Target Path: %target_Path%
  9. echo Source Path: %source_Path%
  10. echo Continue if everything looks correct here.
  11. pause
  12. dir %sea_String% /a-ld /b
  13. for /f %%f in ('dir %sea_String% /a-ld /b') do (
  14.    set f_targ="%target_Path:~1,-2%\%%f"
  15.    set f_src="%source_Path:~1,-1%\%%f"  
  16.    echo Junction %%f for %targ% from %src%
  17.    xcopy "!f_targ:~1,-1!" "!f_src!\" /c /s /d /y /i
  18.    rmdir /s /q !f_targ!
  19.    mklink /j !f_targ! !f_src!
  20. )
  21. pause
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement