outdatedTV

GenerateDATA BAT

Sep 16th, 2017
368
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. @echo off
  2. set _Output=K:\xeditTEMP\Skyrim Special Edition
  3. set _SteamPath=G:\ProgiGry\SteamProg\steamapps\common\Skyrim Special Edition
  4. set _ModList=..\profiles\TUCOGUIDE 2.0\modlist.txt
  5.  
  6. echo Deleting old dir...
  7. RD /S /Q "%_Output%"
  8. cls
  9. echo Ready to start.
  10. pause
  11.  
  12. robocopy /s "%_SteamPath%" "%_Output%"
  13.  
  14. echo copying skyrim mods according to MO2 modlist order...
  15. title copying skyrim mods according to MO2 modlist order...
  16. md "%_Output%\dataTEMP"
  17. ::get total amount of mods
  18. Set /a _Lines=0
  19. For /f %%j in ('Find "%_ModList%" /v /c ^< %_ModList%') Do Set /a _Lines=%%j
  20. SET /A XCOUNT=0
  21. setlocal enableextensions enabledelayedexpansion
  22.  
  23. ::start looping through mod folders from modlist.txt and copy to temp folder
  24.  
  25. FOR /f "tokens=1,2* delims=+" %%G IN (%_Modlist%) DO (
  26. cls
  27. SET /A _XCOUNT+=1
  28. echo Copying skyrim mods according to MO2 modlist order...
  29. title Copying skyrim mods according to MO2 modlist order...
  30. echo Copying mod !_XCOUNT! of %_Lines%
  31. echo Copying mod "%%G"
  32. IF NOT "%_XCOUNT%" == "1" robocopy /s /xc /xn /xo /xx "%%G" "%_Output%\dataTEMP" >nul
  33. )
  34. cls
  35. echo Copying skyrim mods to final folder...
  36. Title Copying skyrim mods to final folder...
  37. robocopy /MOV /S /IS "%_Output%\dataTemp" "%_Output%\data"
  38. cls
  39. echo All done... copying your plugins file to beth folder now
  40. copy "..\profiles\TUCOGUIDE 2.0\plugins.txt" "C:\Users\0wner\AppData\Local\Skyrim Special Edition\plugins.txt"
  41. pause
  42. "G:\ProgiGry\SteamProg\steamapps\common\Skyrim Special Edition\Mopy\Wrye Bash.exe" -g "Skyrim Special Edition" -o "K:\xeditTEMP\Skyrim Special Edition"
Advertisement
Add Comment
Please, Sign In to add comment