http://qs321.pair.com?node_id=11108383


in reply to Re^3: Batch file renaming - on identical name, keep only most recent file, based on dates
in thread Batch file renaming - on identical name, keep only most recent file, based on dates

The HH_mm_ss format seems to be consistent

It seems not, given one of the datetimes shown in the OP is '2019-6-12T22:34:8'.

There is no chance of a name collision in that example since the year, month and day are repeated in the new name.

IMHO that's also a very dangerous assumption to make.