I've got a camera that names its files in its own way. When one uses Windows Explorer to list them by filename, they're out of chronological order. Fine, but I can sort them by file date in Windows Explorer, so no problem. Right?
No, because my movie-editing software sorts the files *only* by filename, and I can't make it sort by file-date. So I've got to rename the files sequentially in their chronological order.
This is a job for 4DOS or its descendants. I've got version 5, by the way, and I'm properly registered, but (a) I haven't done any batch files in years, and (b) I don't want to update 4DOS because it'll screw up some of the batch files I've got.
Can anyone help me with a batch file that (a) lists the files in a directory by file date, oldest first; (b) takes the first file in the list and renames it 00001.xxx where xxx is the extension it already has; (c) takes the next oldest file and renames it 00002.xxx, (d) and so until all files have been renamed?
Probably a stupid request, but please humor an old fart.
--Anders R. Sterner
No, because my movie-editing software sorts the files *only* by filename, and I can't make it sort by file-date. So I've got to rename the files sequentially in their chronological order.
This is a job for 4DOS or its descendants. I've got version 5, by the way, and I'm properly registered, but (a) I haven't done any batch files in years, and (b) I don't want to update 4DOS because it'll screw up some of the batch files I've got.
Can anyone help me with a batch file that (a) lists the files in a directory by file date, oldest first; (b) takes the first file in the list and renames it 00001.xxx where xxx is the extension it already has; (c) takes the next oldest file and renames it 00002.xxx, (d) and so until all files have been renamed?
Probably a stupid request, but please humor an old fart.
--Anders R. Sterner