Displaying latest file in a directory

M

maxhauser

I have quick little page that I need to create but its sounds like the
concept is not so quick.

I have a folder with eight or ten files that can be displayed in a
browser. I need to display the file with the latest creation date. I
imagine there is some kind of ASP function that could like at the
filename's date and pick the file that meets the criteria. How can I do
this?
 
B

Bob Barrows [MVP]

I have quick little page that I need to create but its sounds like the
concept is not so quick.

I have a folder with eight or ten files that can be displayed in a
browser. I need to display the file with the latest creation date. I
imagine there is some kind of ASP function that could like at the
filename's date and pick the file that meets the criteria. How can I
do this?

Do a search at www.aspfaq.com for filesystemobject. You'll see plenty of
examples. Do the same at msdn.microsoft.com/library.

Bob Barrows
 

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

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,011
Latest member
AjaUqq1950

Latest Threads

Top