I have a BATCH file that in CMD parses the DATE /T command to create some variables which are used to create directories.
I checked the directory where the new directories are created and noticed that today's directory was missing. I then realized that I had run the batch in TCC instead of CMD. I found the new directory, but it was not named what it should have been. Come to find out, the DATE command in CMD creates different output than the DATE command in TCC.
Is this intentional? If so, why when compatibility with CMD is usually paramount?
for /f "tokens=2-4 delims=/ " %%a in ('date /t') do ( set temp_today=%%b set temp_fulldate=%%c%%a%%b )
cmd> date /t Thu 05/24/2012
tcc> date /t Thu 5/24/2012