- Jun
- 121
- 0
Hi
Running TCC 13.02.35 Windows XP [Version 5.1.2600]
1. Create 3 files with names
20111129.PR2
20111130.PR2
20111128.PR2
in an empty directory. They are non-zero in size.
2. Now do
for %a in (*.pr2) do ren %a B%a
3. I find that the for loop runs 4 times. It does the renaming for the 3 files and then does the 1st file again. I see
B20111129.PR2
B20111130.PR2
BB20111128.PR2
Anyone reproduce this ?
thanks
Stephen Howe
Running TCC 13.02.35 Windows XP [Version 5.1.2600]
1. Create 3 files with names
20111129.PR2
20111130.PR2
20111128.PR2
in an empty directory. They are non-zero in size.
2. Now do
for %a in (*.pr2) do ren %a B%a
3. I find that the for loop runs 4 times. It does the renaming for the 3 files and then does the 1st file again. I see
B20111129.PR2
B20111130.PR2
BB20111128.PR2
Anyone reproduce this ?
thanks
Stephen Howe