FileInfo

J

josh

Hi All,

I understand how to list files in a directory using directoryinfo and
fileinfo, but does anyone have any ideas how to list those files based on
creation date rather then by alphebitical order.

thanks

josh
 
C

Cor

Hi Josh,
Why not the listview and sort that with icomparer, there are examples on
MSDN of that.
(there are 2 examples, you need them both).
Cor
 
H

Herfried K. Wagner [MVP]

josh said:
I understand how to list files in a directory using directoryinfo and
fileinfo, but does anyone have any ideas how to list those files based on
creation date rather then by alphebitical order.

You will have to get the files' timestamps and sort them...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top