View Single Post
Old 6th July 2008, 02:00 PM   #2 (permalink)
pursuit
Registered User
 
Join Date: Feb 2006
Location: London, UK
Posts: 281
since you mentioned vbs so assuming you'd be comfortable with a bit of VB programming:

first, open the image/photo directory and read all photo files (except the two meta 'files: . & ..') in a loop, then check each file's last modified date, and if 30 days or over, then do a file delete. any basic VB tutorial book would have similar examples.
you then compile the vb program and make an exe file, add it to the windows startup list. everytime window starts, it will run the exe and do the house keeping automatically.

I dont think you can run a vbs script to do this kind of thing for it would be a huge security implication if vbs scripts is allowed to carry out this sort of operations(local file/disk operations).
pursuit is offline   Reply With Quote