PC Review


Reply
Thread Tools Rate Thread

How to delete a file depending on date

 
 
=?Utf-8?B?VG9tYXM=?=
Guest
Posts: n/a
 
      8th Jul 2004
Hi

I would like to delete files that has a date older than a month.
Is there anyone who know any toll or script that can do that?


 
Reply With Quote
 
 
 
 
Michael Bednarek
Guest
Posts: n/a
 
      8th Jul 2004
On Wed, 7 Jul 2004 23:25:01 -0700, "Tomas"
<(E-Mail Removed)> wrote in
microsoft.public.win2000.file_system:

>I would like to delete files that has a date older than a month.
>Is there anyone who know any toll or script that can do that?


Here's how I delete files older than 30 days, using 4NT:
DEL /[d-30,1980/1/1]

I use this regularly to delete old log files and such.

4NT's date ranges are documented at
<http://jpsoft.com/help/dateranges.htm>

If you really want to delete files older than exactly one month, ask
again - it will require a slightly more elaborate solution. But I
suspect "older than 30 days" might suffice.

--
Michael Bednarek http://mbednarek.com/ "POST NO BILLS"
 
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
delete row depending on the value of a cell sanyi Microsoft Excel Discussion 1 16th Sep 2009 06:23 PM
How to delete a set of rows depending on Value =?Utf-8?B?bXNidXR0b24yNw==?= Microsoft Excel Misc 1 15th Jan 2006 04:57 PM
Help with sql query (find who has file depending on date) =?Utf-8?B?RWRkeQ==?= Microsoft Access Queries 2 10th Nov 2005 12:33 AM
Delete row depending on criteria adw223 Microsoft Excel Misc 1 30th Jun 2005 12:55 AM
How to delete a row depending on a script Raj Bharath Microsoft Excel Programming 2 9th Jan 2004 12:28 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:32 PM.