Photo Gallery Member List Search Calendars FAQ Ticket List Log Out


Not Been Accessed In X Days

 
Logged in as: Guest
arrSession:exec spGetSession 2,16,63335
 Active Users: There are 0 members and 0 guests.
 Users viewing this topic: none
 

 

 
  
  Printable Version
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!
Page: [1]
Login
Message << Older Topic   Newer Topic >>
 Not Been Accessed In X Days - 8/11/2008 11:46:45 PM   
  xITz your FEARx

 

Posts: 3
Score: 0
Joined: 8/11/2008
Status: offline
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 >
 
 
Revisions: 2 | Post #: 1
 
 
 
  

If you found our site useful please link to us <a href="http://www.visualbasicscript.com">VisualBasicScript.com</a>.
All Forums >> [Scripting] >> Post a VBScript >> Not Been Accessed In X Days Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts