Skip to content

Instantly share code, notes, and snippets.

@lyo
Created August 26, 2009 16:02
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 lyo/175608 to your computer and use it in GitHub Desktop.
Save lyo/175608 to your computer and use it in GitHub Desktop.
@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