Skip to content

Instantly share code, notes, and snippets.

@Delivator
Created April 8, 2018 13:00
Show Gist options
  • Save Delivator/a4e0d2f926c4ca2fe974ee65aa2bc948 to your computer and use it in GitHub Desktop.
Save Delivator/a4e0d2f926c4ca2fe974ee65aa2bc948 to your computer and use it in GitHub Desktop.
Adds a "_1" to all files in the own directory
@echo off
for %%a in (*.*) do if not "%%a"=="%~nx0" (
echo Renaming %%~a in %%~na_1%%~xa
ren "%%~a" "%%~na_1%%~xa"
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment