Velocity Reviews

Velocity Reviews (http://www.velocityreviews.com/forums/index.php)
-   ASP General (http://www.velocityreviews.com/forums/f65-asp-general.html)
-   -   Displaying latest file in a directory (http://www.velocityreviews.com/forums/t799027-displaying-latest-file-in-a-directory.html)

maxhauser@mailcity.com 06-24-2005 04:56 PM

Displaying latest file in a directory
 
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?


Bob Barrows [MVP] 06-24-2005 05:26 PM

Re: Displaying latest file in a directory
 
maxhauser@mailcity.com wrote:
> 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
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don't check it very often. If you must reply off-line, then remove the
"NO SPAM"




All times are GMT. The time now is 09:33 PM.

Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57