|
|
|
|
||||||
![]() |
|
|
LinkBack | Outils de la discussion |
|
|
#1 |
|
Messages: n/a
Hébergeur: |
On Mon, 12 Nov 2007 09:23:02 -0800, mharmon
<mharmon@discussions.microsoft.com> wrote in microsoft.public.windows.server.scripting: >I want to write a script that will look through a folder and subfolder and >find all files of a particular file extension that are over 2 weeks old and >write these files to a log. >Then run weekly from Windows Scheduler. You need to define what constitutes "over 2 weeks old". Whatever that is, it's trivial with the right CLI (4NT): DIR /s /b /[d-14,1980-01-01] d:\dir\*.ext >file.log which considers the modification date. 4NT is a commercial program. I'm sure solutions in most other languages are more elaborate. -- Michael Bednarek http://mbednarek.com/ "POST NO BILLS" |
|
![]() |
| Outils de la discussion | |
|
|