Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

most recent file in a folder

Status
Not open for further replies.

rhmoore

Technical User
Dec 21, 2001
13
GB
The backgound.

I have a networked webcam which will automatically ftp JPEG snapshot images to a server for inclusion on a web page. I can make it do this quite happily. But I also want to retain the images for later use. The camera can automatically name the files in sequence, the name is somehow based on the time the image was taken or may just be a random name I am not quite sure. I cannot collect the live video feed from the camera for purely operational reasons.

The problem

I cannot think of a way to detect the most recent file, in the destination folder, which to display on the web page. The mechanism of displaying the file I am happy with. I will be taking one frame every 30 minutes 24 hours per day for about a year, so I will have a large number of files to sift through. Is vbs the right way to do this ?

Suggestions please.
 
Yup, you should look into the FileSystemObject... This is not a bug - it's an undocumented feature...
;-)
 
I saved JPEG files form my camera to my hard drive. Now they have all been changed to VBScript files and I can no longer open them. Any clue as to what I should do?
 
get a good virus protection software bundle You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top