Given the directory structure c:\a\b\c\d\ - what DOS command will delete all files contained in c:\a along with any files in the subdirectories b, c, and d? We do not want to delete any directories - just files.
The DEL
command only deletes files, not directories, so the following command will do as you asked:
DEL /S C:\a
You need to use RMDIR
to remove directories.
Use:
del *.* /s /q
Check the directories are still there:
tree
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With