Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
@echo off
:: test of "sequence number file"
setlocal enabledelayedexpansion
set prefix=C:\path\to\hoge.
set extension=.bk
set pad=2
for /l %%i in (1, 1, 15) do (
set num=00000%%i
set file_path=%prefix%!num:~-%pad%!%extension%
echo !file_path!
)
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment