Results 1 to 1 of 1
I am new to using Linux, gawk, and scripting, and I need to create a script to go through all the directories comparing how the date that it was last ...
- 01-07-2010 #1Just Joined!
- Join Date
- Jan 2010
- Posts
- 1
Awk, iterating through Directories
I am new to using Linux, gawk, and scripting, and I need to create a script to go through all the directories comparing how the date that it was last modified to a date several years ago. If it is older or equal to the date, then put the filepath and name along with the date it was last modifed into a file. This is what I have so far and it is mostly the logic of it, but if anyone could give me input it would be greatly appreciated
set objFS = CreateObject("Scripting.FileSystemObject")
directory = "C:\CSW\test.txt"
Set objFolder = objFS.GetFolder(directory)
Foreach (strFile in objFolder.Files)
If DateDiff("n",strFile.DateLastModified,Now) > Dec 31 2006 11:59 Then
strFileName > directory
strfile.DateLastModified > directory
End If


Reply With Quote