PC Review


Reply
Thread Tools Rate Thread

command line search

 
 
David
Guest
Posts: n/a
 
      11th Nov 2003
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.
 
Reply With Quote
 
 
 
 
PS
Guest
Posts: n/a
 
      11th Nov 2003

"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


 
Reply With Quote
 
Doug Knox MS-MVP
Guest
Posts: n/a
 
      12th Nov 2003
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
>
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Command line Windoze Explorer Search davegb Windows XP General 3 23rd Feb 2008 09:54 PM
How to do a command line search for files modified by a certain da =?Utf-8?B?Ym9va2VyQG1ndA==?= Windows XP Basics 3 8th Feb 2007 11:17 PM
Command Line string search =?Utf-8?B?SGFs?= Windows XP General 1 14th Jun 2005 03:48 AM
command line search David Microsoft Windows 2000 CMD Promt 8 15th Nov 2003 12:11 PM
command line equivalent of search... Bill B Microsoft Windows 2000 CMD Promt 4 1st Aug 2003 08:11 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:56 PM.