[AccessD] (Really Really OT) - programatically sorting files in a folder

Gustav Brock gustav at cactus.dk
Fri Feb 14 09:45:01 CST 2003


Hi Oleg

It's Friday and you are a man of great humour!
Never seen a specification like this:

  not alphabetical, and it has to include wildcards

So how? Date? Size with wildcards?
Writing a custom sorting routine in a batch file is not trivial, and
if you display the file list in Windows Explorer it will be sorted as
to the settings of Windows Explorer anyway.

To sort the folder (directory) itself you'll have to recreate it and
fill in the files again one by one in the order you decide. Again,
Explorer will ignore it - but Dir() will not.

/gustav


> Hey, since its Friday, i guess i can post an OT question. :)
> I have a folder where I import about 30 files every day. The names are
> almost the same except for last 2 digits. ex. Veronica03 on one day
> Veronica04 or tne next. Can I have a batch file or something that would
> sort them in the order that I need ? (not alphabetical, and it has to
> include wildcards)




More information about the AccessD mailing list