foxidrive wrote:It looks like my 24 time confuses it in my locale settings.
My file is called "a good dog.txt" and this is printed.
ren "good dog.txt" "good dog_10_05_2013_.txt"
Yes. If your DIR command doesn't show an "a.m." or "p.m." column, you must modify the FOR command with one token less:
Code: Select all
for /F "tokens=1,3*" %%a in ('dir /A-D /T%1 *.txt') do (
This problem may be fixed with additional code.
Antonio