All Forums >> [Scripting] >> Post a VBScript >> Not Been Accessed In X Days Do you like VisualBasicScript.com? Link to us and help spread the word about our forum. Thanks!
As far as I know, this works completely, I have not had any problems with it. Ok so anyway, this scripts will search for all files that have not been accessed in or over x days, x being the user define value. The logging does not work, I am to lazy to fix it, but really you can make it log anyway with > logfile.txt...
So anyway this is how you use it.
blahblah>cscript AccessedX.vbs "The Root Directory" X
Root directory being the starting folder you wish it to search from, and X being the amount of days it has not been accessed in.
So here it is and tell me what you think. Btw, I based this off of another VBScript I had with me, so I didnt have to type as much.
Edit: Oh right... It works by accessing the files meta data, not actually accessing the file. So it will not change the last accessed date.
Edit 2 : I fixed the logger
< Message edited by xITz your FEARx -- 8/12/2008 2:04:31 AM >