Skip to content

Instantly share code, notes, and snippets.

@Edwardtonnn
Created April 15, 2024 17:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Edwardtonnn/18bae35bc94574b61dff2c76717d6ab6 to your computer and use it in GitHub Desktop.
Save Edwardtonnn/18bae35bc94574b61dff2c76717d6ab6 to your computer and use it in GitHub Desktop.
Renames all images in the directory 01.jpg 02.jpg 03.jpg
cmd /v:on /c "set i=0 & for %f in (*.jpg) do (set /a i+=1 & set "num=00!i!" & set "num=!num:~-2!" & ren "%f" "!num!.jpg")"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment