Page 1 of 1

DirDate fails if filename contains an equals sign

Posted: Mon Jan 28, 2013 12:09 am
by badkitty
I am running DirDate v5.7 x64 on Windows 7 Professional x64.

I run the following dirdate commands to set all dates for a file called "3=.txt"

Code: Select all

"C:\Program Files\DirDate\dirdate.exe" MODIFIED= -date=03.01.2013 -time=13:30:30 "C:\Temp\Downloads\Test\3=.txt"
"C:\Program Files\DirDate\dirdate.exe" LASTACCESS= -date=03.01.2013 -time=13:30:30 "C:\Temp\Downloads\Test\3=.txt"
"C:\Program Files\DirDate\dirdate.exe" CREATION= -date=03.01.2013 -time=13:30:30 "C:\Temp\Downloads\Test\3=.txt"
This is the output of the above commands:

Code: Select all

Invalid date/time part C:\TEMP\DO
Valid parts are T/TIME,D/DATE,HOUR,MIN/MINUTE,SEC/SECOND,MSEC/MSECOND,YEAR,MON/MONTH and DAY,ADD,SUB
Invalid date/time part C:\TEMP\DO
Valid parts are T/TIME,D/DATE,HOUR,MIN/MINUTE,SEC/SECOND,MSEC/MSECOND,YEAR,MON/MONTH and DAY,ADD,SUB
Invalid date/time part C:\TEMP\DO
Valid parts are T/TIME,D/DATE,HOUR,MIN/MINUTE,SEC/SECOND,MSEC/MSECOND,YEAR,MON/MONTH and DAY,ADD,SUB
It seems that dirdate cannot set the date and time for file/directory names that contain an equals sign.

It would be nice if this could be fixed.

Thanks!

Re: DirDate fails if filename contains an equals sign

Posted: Tue Jan 29, 2013 7:49 am
by DataMystic Support
Thanks - this has now been fixed in v5.8, available shortly:

* Fixed command-line filenames with embedded equals signs (=) being
interpreted as options. Unknown options are now treated as a filename
and flagged with a warning message.