Link to home
Start Free TrialLog in
Avatar of stevengreen
stevengreen

asked on

Script - Last File Accesssed

Hi all,

Does anybody know where I can find a batch/vb script that will print to a file all filenames & folders the were last accessed 6 months ago?

Want to run this on my file server where I've got tons of files that were used once and never again.

Thanks
Stevengreen
ASKER CERTIFIED SOLUTION
Avatar of David Lee
David Lee
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of stevengreen
stevengreen

ASKER

Ok,

This looks awesome.  Is there a way that I can get it to print the date next to each filename as well?

Also, if I say wanted to change it from 6 months to 1 year how would I go about doing that?

Thank you for your help....
Sure.  To show the date change this line

    Wscript.Echo objFile.Path

to

    Wscript.Echo objFile.Path & " " & objFile.DateLastAccessed

To change from 6 months to 1 year, change the 6 to a 12.

No problem.