Code: Select all
@echo off
setlocal enableExtensions disableDelayedExpansion
set "N=1000000000"
for %%a in ("*12345-*" "*-*12345") do (
for /f "tokens=* delims=" %b in ('set /a "N"') do (
echo(ren "%%~a" "%%~b.txt"
)
set /a "N+=1"
)
goto :eof
In case you are satisfied with the commands created, you might want to delete the "echo(".
penpen