ca143508 Posted June 27, 2006 Posted June 27, 2006 Guys, I want to put together a script that can scan a network drive, identify any files that have not been accessed since a specific date. For example, I want to search S drive for any doc files not accessed since January first. Is such a script possible or has anyone had a crack at it? If so, can I please take a look at it? I just can't figure out where to start. Any help would be appreciated. Cheers Mike
Valuater Posted June 27, 2006 Posted June 27, 2006 (edited) the whole drive??? use dir command and output to a file a cetain folder/folders? then use filelisttoarray thats just the start ******************************* then Something like this? #include<date.au3> $n_tFile = "your file name" $n_Fdate = FileGetTime($n_tFile,1) $sdate=$n_Fdate[0] & "/" & $n_Fdate[1] & "/" & $n_Fdate[2] & " " & $n_Fdate[3] & ":" & $n_Fdate[4] & ":" & $n_Fdate[5] $edate=_NowCalc() If _DateDiff ('d',$sdate,$eDate) > 5 then ; EndIf 8) Edited June 27, 2006 by Valuater
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now