Given the directory structure c: \ a \ b \ c \ d \ - which DOS command will delete all files contained in c: \ a, along with any files in the b, c and d subdirectories? We do not want to delete directories - just files.
The DEL command only deletes files, not directories, so the following command will execute upon your request:
DEL
DEL /SC:\a
You need to use RMDIR to delete directories.
RMDIR
Using:
del *.* /s /q
Verify that the directories still exist:
tree
@del /S /Q /F a\* >nul @for /d %%i in (a\*) do @rmdir /s /q "%%i"