On 18 Jan 2005 11:39:24 -0800, "EziContact1" <(E-Mail Removed)> wrote:
>Hello all
>
>can any one help?
>
>I need to clean few folders using a batch file ..but I couldn't find a
>way to delete subdirectories (Without deleting Root folder)
>
>Eg:
>if we have this tree:
>C:\Folder1\folder2\files 1 2 3 etc
>C:\Folder1\folder3\files 1 2 3 etc
>C:\Folder1\folder4\folder5\files 1 2 3 etc
>C:\Folder1\files 1 2 3 etc
>
>I need to del (erase everything in "C:\Folder1" without deliting
>folder1)
>
>At the moment I use (RD "C:\Folder1" ~~ and MD "C:\Folder1")but it has
>some side effects.
>
>Thank you all for help...
See Deltree.bat at tip 617 in the 'Tips & Tricks' at
http://www.jsiinc.com
Jerold Schulman
Windows Server MVP
JSI, Inc.
http://www.jsiinc.com