1.

Solve : Using Dos Batch file for deletion by date?

Answer»

Hi everyone,

I got a small problem. I have been looking for a way to delete certain files created on a specific date.

Is there a posibility to do that with a BATCH file? I thought I read it somewhere but It SEEMS to ave SLIPPED my mind on how to do it.

I have created three batch which copy and rename a file and delete it in it original folder (for archiving). Now I would like to delete certain files which were created on a specific date.

Thanks for the help or HINTS in advance.hi just one thing it would not be the creation date. I would need the modify date. is that possible?? yes?? how??DOS is not aware of a MODIFIED date or for that matter the create date, only the date the file was last saved.

You may want to look at doing a VB Script for this type of thing. VB Scripts can retreive extensively more information from Windows than can a DOS batch file.hi gussery

thanks for the quick reply...mmhhh.. yes the last saved does not help my much...but the idea with VB script is great.

Thanks a bunch...will get to work on the VB

cheers



Discussion

No Comment Found