Skip to content

Instantly share code, notes, and snippets.

@mechawrench
Last active November 29, 2017 06:46
Show Gist options
  • Save mechawrench/550642c8b3eb39a1f02e0a91f0eb3759 to your computer and use it in GitHub Desktop.
Save mechawrench/550642c8b3eb39a1f02e0a91f0eb3759 to your computer and use it in GitHub Desktop.
Batch copy + rename, windows (D2)
@echo off
for /L %%i IN (1,1,100) do call :docopy %%i
goto end
:docopy
set FN=%1
set FN=%FN:~-3%
copy game.exe game_%FN%.exe
:end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment