Hi ALL
I'm having trouble accomplishing the below.
I would like have a batch file that will delete sub directories and the files contained in them, but it should keep the latest 3 sub directories. example- c:\test\ contained in this directory are sub directories named jan012004, jan022004 and jan102004.
In the event of a new dir being added to c:test\ ie - jan112004, jan012004 should be deleted by the batch program. However if no new sub directory is added ie jan112004 the oldest sub directory should not be deleted by the batch program ie jan012004.
Thanks very you much...In advance.