Topic: Delete files within date range (1 of 6), Read 39 times
Conf: Startup, File Open, Exit
From: Abdallah Elassaad
Date: Thursday, August 12, 2004 03:11 PM

I would like to use Vedit to search a specific directory, all its sub folders
and delete files with extension *.pcl that fits a specific date range ( i.e. 1/1/1999 to 12/30/1999).

Thanks

 


Topic: Re: Delete files within date range (2 of 6), Read 31 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Thursday, August 12, 2004 04:10 PM

On Thu, 12 Aug 2004 15:11:00 -0400, Abdallah Elassaad wrote:

>I would like to use Vedit to search a specific directory, all its
>sub folders and delete files with extension *.pcl that fits a
>specific date range ( i.e. 1/1/1999 to 12/30/1999).

I really would suggest to use Windows' Explorer for that!
It has a "Search" command with optional date range.

Christian

 


Topic: Re: Delete files within date range (3 of 6), Read 33 times
Conf: Startup, File Open, Exit
From: Ian Binnie
Date: Thursday, August 12, 2004 07:53 PM

On 8/12/2004 4:10:14 PM, Christian Ziemski wrote:
>On Thu, 12 Aug 2004 15:11:00 -0400,
>Abdallah Elassaad wrote:
>
>>I would like to use Vedit to search a specific directory, all its
>>sub folders and delete files with extension *.pcl that fits a
>>specific date range ( i.e. 1/1/1999 to 12/30/1999).
>
>I really would suggest to use Windows'
>Explorer for that!
>It has a "Search" command with optional
>date range.
>
>Christian

I agree with Christian that it is better to use the appropriate tool for the job. It could be done with Explorer, but I recommend ZTreeWin, which excels at this kind of task.

ZTree & Vedit are my most frequently used programs, and make a great team.

http://www.ztree.com/html/ztreewin.htm

 


Topic: Re: Delete files within date range (4 of 6), Read 23 times
Conf: Startup, File Open, Exit
From: Gary Darsey
Date: Friday, August 13, 2004 11:46 AM

I think it would be possible to do this task with VEDIT, but I'm not skilled enough to write a polished macro. An approach could be based on Christian's DDIR-REC.VDM with the following information input somehow (via dialog box or other):

-file extensions to delete (*.pcl, could also be a delimited list)

-dates of ranges and whether these are inclusive

Dir_Date() provides the date information for the files. Num_Eval_Date() could be used for all dates to provide numbers for comparison. Search for the dates as in the PDF documentation for Num_Eval_Date(), get the numbers, process, step through subdirectories.

One thing that VEDIT could bring to this task is a complete record of all the files deleted.

I apologize if this is unclear -- I'm basically thinking on the keyboard with very limited time.

-Gary

 


Topic: Re: Delete files within date range (6 of 6), Read 14 times
Conf: Startup, File Open, Exit
From: Christian Ziemski
Date: Sunday, August 15, 2004 03:52 PM

On Fri, 13 Aug 2004 11:46:00 -0400, Gary Darsey wrote:

>I think it would be possible to do this task with VEDIT, but I'm not
>skilled enough to write a polished macro. An approach could be based
>on Christian's DDIR-REC.VDM with the following information input
>somehow (via dialog box or other):

Gary:

Of course it is possible to write a macro for this task.

I would name it a "programming exercise".
One could learn much about VEDITs macro language.

But I wouldn't do it for a production environment.
There are many better tools for that.

VEDIT is really a multi-purpose-tool,
but sometimes (rarely) there is another winner ;-)


Christian

 


Topic: Re: Delete files within date range (5 of 6), Read 19 times
Conf: Startup, File Open, Exit
From: Fritz Heberlein
Date: Friday, August 13, 2004 06:05 PM

> I agree with Christian that it is better to use the appropriate tool for the
> job. It could be done with Explorer, but I recommend ZTreeWin, which excels at
> this kind of task.

Or TakeCommand, the venerable DOS shell for Windows (formerly 4DOS,
www.jpsoft.com).

Fritz