Such as http://www.computerhope.com/forum/index.php?topic=106002.0
Hi. I have a for loop, which calls a program (tc), which outputs variouis files. I would like to rename files with numbers at the end, with 3 figures.
e.g. filename_001
...
filename_197
So far I have the following:
for /l %%i in (1,1,197) do (
tc C:\filename.inp "macro Range {%%i} #define GUI_LINES"
copy C:\filename.out C:\subfiles\filename_%%i.inp
move /y C:\filename.out C:\filename.inp
move /y C:\filename_%%i.xy C:\subfiles\filename_%%i.xy
)
This only gives me
e.g. filename_1
...
filename_197
Can anyone help me get the padding zeros please?
Thanks

Chowhound
Comic Vine
GameFAQs
GameSpot
Giant Bomb
TechRepublic