Created
December 8, 2016 22:12
-
-
Save novasdream/3fa75d44a7c1752c2634cabe8c885423 to your computer and use it in GitHub Desktop.
arquivo bat para renomear de forma sequencial. Enquanto não descubro como renomear o arquivo direto pela xtrax.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
set /p start=Insira o valor inicial de saida: | |
setlocal enableDelayedExpansion | |
for /r %%g in (*.JPG) do (call :RenameIt %%g) | |
goto :eof | |
goto :exit | |
:RenameIt | |
echo Renaming "%~nx1" to !start!%~x1 | |
ren "%~nx1" !start!%~x1 | |
set /a start+=1 | |
goto :eof | |
:exit | |
exit /b |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment