| 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). |