Advertisement
Guest User

NBA 2K19 Random Mods

a guest
Feb 6th, 2019
592
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Batch 0.46 KB | None | 0 0
  1. @echo off
  2. setlocal EnableDelayedExpansion
  3. rem Enter into the directory that contain the folders
  4. pushd "STARTING FOLDER"
  5. rem Create an array with all folders
  6. set i=0
  7. for /D %%a in (*) do (
  8.    set /A i+=1
  9.    set folder[!i!]=%%a
  10. )
  11. rem Randomly select one folder
  12. set /A index=(%random%*i)/32768 + 1
  13. rem Copy the desired files
  14. copy "!folder[%index%]!\" "TARGET FOLDER" /Y
  15. rem And return to original directory
  16. popd
  17.  
  18. START steam://rungameid/841370
  19. endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement