Search found 2 matches
- 20 Dec 2011 16:13
- Forum: DOS Batch Forum
- Topic: Strange behavior
- Replies: 4
- Views: 5663
Re: Strange behavior
Many thanks to orange_batch and !k. You are great !
- 20 Dec 2011 14:42
- Forum: DOS Batch Forum
- Topic: Strange behavior
- Replies: 4
- Views: 5663
Strange behavior
Hi, This scprit put zeros in front of numbers. For counter=1 and counter=2, the result is wrong. Why? I run on Windows Vista 32 bits. Script: @echo off :: zero leading (ex. 1 --> 001, 2 -->002, ...., 99 --> 099...) if exist m.txt del m.txt set "z=000" set n=111 set counter=1 :loop if %coun...