![]() |
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() |
| Welcome to Windows Vista Forums. Our forum is dedicated to helping you find solutions with any problems, errors or issues you are experiencing with Windows Vista. The Vista forum also covers news and updates and has an extensive Windows Vista tutorial section that covers a wide range of tips and tricks. |
| |||||||
![]() |
| |
| | #1 (permalink) |
| | Need Help for archive logs i have folder with logs , i want to archive 10 day's from current date using compress n move to d:\ with curent date folder. |
My System Specs![]() |
| | #2 (permalink) |
| | Re: Need Help for archive logs "RAVIRAJ" <RAVIRAJ@xxxxxx> wrote in message news:A5F43AEE-AF4A-42A3-B5F6-782137D438EF@xxxxxx Quote: > > i have folder with logs , i want to archive 10 day's from current date > using > compress n move to d:\ with curent date folder. > > > Set objFSO = Server.CreateObject("Scripting.FileSystemObject") Set fl = objFSO.GetFolder("C:\MyfolderPath") For Each f In fl.Files If f.DateLastModified > date()-10 Then ' then we need to move the files. objFSO.MoveFile f.name , "D:\Archive\" End If Next set fl = nothing set objFSO = nothing |
My System Specs![]() |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Forum | |||
| Recoving 7 Zip Archive - Cannot open file 'xampp.7z' as archive | Vista file management | |||
| Archive | Vista mail | |||
| archive | Vista mail | |||
| subject windows Vista Event Logs access through WMI ( Applications and Services Logs) | Vista networking & sharing | |||
| windows Vista Event Logs access through WMI ( Applications and Services Logs) | Vista General | |||