Instantly share code, notes, and snippets.

@lyo lyo/gist:175608
Created Aug 26, 2009

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!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment