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