A
Andrew Aronoff
See tip 0617 » How do I remove all files and sub-directories from a folder, without removing the folder?
Tip 0617 might best be amended as follows:
To delete all the files and sub-directories in <Drive:>\My Test Folder
and leave an empty <Drive:>\My Test Folder, type:
DELTREE "<Drive:>\My Test Folder\"
To delete <Drive:>\My Test Folder, too, omit the trailing backslash:
DELTREE "<Drive:>\My Test Folder"
regards, Andy
--
**********
Please send e-mail to: usenet (dot) post (at) aaronoff (dot) com
To identify everything that starts up with Windows, download
"Silent Runners.vbs" at www.silentrunners.org
**********
in the 'Tips & Tricks' at http://www.jsifaq.com
Tip 0617 might best be amended as follows:
To delete all the files and sub-directories in <Drive:>\My Test Folder
and leave an empty <Drive:>\My Test Folder, type:
DELTREE "<Drive:>\My Test Folder\"
To delete <Drive:>\My Test Folder, too, omit the trailing backslash:
DELTREE "<Drive:>\My Test Folder"
regards, Andy
--
**********
Please send e-mail to: usenet (dot) post (at) aaronoff (dot) com
To identify everything that starts up with Windows, download
"Silent Runners.vbs" at www.silentrunners.org
**********