Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- setlocal EnableDelayedExpansion
- rem Enter into the directory that contain the folders
- pushd "STARTING FOLDER"
- rem Create an array with all folders
- set i=0
- for /D %%a in (*) do (
- set /A i+=1
- set folder[!i!]=%%a
- )
- rem Randomly select one folder
- set /A index=(%random%*i)/32768 + 1
- rem Copy the desired files
- copy "!folder[%index%]!\" "TARGET FOLDER" /Y
- rem And return to original directory
- popd
- START steam://rungameid/841370
- endlocal
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement