Hello VBAguy22..
No, you can not sort by 2 parameters.. Only the first typed parameter would be acted on.. IE: say I typed this command:
dir *.* /s /o:-s /t:w |dir.txt
/o = sort Order
:-s = size (largest first)
/t = time
:w = last time written to
OR
:a = last time accessed (this may be the one you want)
(Side Note & a Tip: YOu might wanna make your 'dir' command into a .bat file if you have a lot of partitions. Go to a CLI and type 'help dir' or help <Acommand>)
The 'dir.txt' text file would show your directory listing by SIZE, ignoring the 2nd sort parameter.
How can you have a list sorted by 2 parameters? Once the dir command hit the 2nd switch it would shuffle your perfect SIZE sort, using the 2nd parameter '/t:w', if the dir command didn't ignore the 2nd param.
ALL is not lost..
If you open a DOS box from within Windows for the dir command, your output should show up with the DATE first on each line of each file listed in your SIZE sorted 'dir.txt' file.. Take your 'dir.txt' file into a text editor with a SORT feature. Delete all files references under 20Megs. That should be easy enough since they are listed by size under each directory name.. Select/highlight all the file listings that are from 0 to 20Megs in a directory and hit the delete key. Highlight all the remaining files under that directory name, then use the 'sort' feature of your editor in that directory's listing. Since the DATE is first and TIME is the 2nd parameter, your sort will sort first by all files with the same date with time increasing, then the next date etc. Move on to the next directory and repeat.. The remaining file info is what you will want to print. Does your editor do scripts or can you create keystroke macros? If so, that could save you some repetitive work.
A note about sorting by DATE.. If your date output in the CLI is NOT with Year first, then month, then Day, you will have to set your 'Regional Settings' in 'Control Panel' to show yyyy/mm/dd, if you want it sorted by year first. Set it back after your done with your directory command and you have your 'dir.txt' file(s). Otherwise, it will sort by Month first, then day, THEN year.. IE: mm/dd/yyyy since the first characters in the line are those representing the month, day, then year.
Hmm.. That sounds complicated but if you experiment on a root's main subdirectory and all of it's subs you will see it is quicker than it sounds, but it will take time if your setup is huge..
All this information is in your OS help.
Peace.. -<-* Lynlee