Need your help, My For Loop runs one more time than
expected. I could not find the problem. This is the command
for /f "tokens=* delims= " %%a in ('dir/b/a-d d:\test') do (SET
FNAME=%%~nxa) & call:rename
ren %FNAME% test.%FNAME:~15%.txt
The loop runs 3 times when I have 2 files in the directory.
Could someone pls let me know how to fix this ?
Thanks for your help ...