http://msdn.microsoft.com/library/de...entid=28001169
Download the VB Script and Windows Script Host documentation. You'll
primarily be interested in the VB Script documentation
FileSystemObject
Files Collection object
DateDiff function
--
Doug Knox, MS-MVP Windows XP/ Windows Smart Display
Win 95/98/Me/XP Tweaks and Fixes
http://www.dougknox.com
--------------------------------
Associate Expert
ExpertZone -
http://www.microsoft.com/windowsxp/expertzone
--------------------------------
Please reply only to the newsgroup so all may benefit.
Unsolicited e-mail is not answered.
"PS" <(E-Mail Removed)> wrote in message
news:ywesb.164$(E-Mail Removed)...
>
> "David" <(E-Mail Removed)> wrote in message
> news:092501c3a8ad$0d02ed10$(E-Mail Removed)...
> > What is the command, to do the search of a directory for
> > files modified two week ago or older and then delete
> > them? I want to use this in a script.
>
> try the following news groups, your more likely to get your answer here:
>
> microsoft.public.win2000.cmdprompt.admin
> microsoft.public.scripting.vbscript
>
> Good Luck
> PS
>
>