umm .. to get this straight,

you want to rename a bunch of files in a certain directory to descending numeric filenames (descending relative to "timestamp" in file name) ?

ie. newest file = 1.txt, oldest file = [amount of files].txt

Please confirm ;\)
_________________________