Asks section of batch to delete folder’s order, uses in bat

I knew that del may the document, rd be possible to delete the folder, but how am I only want to delete below a folder’s all folder to delete?
For instance has many child folders under this folder, moreover the sub-folder name does not decide, how can I be able to erase under a all folders, and does not erase this folder?
Does not approve to erase a, founds a again the method!!!
cd a
deltree *.* /y cd a
del * /f /a @echo off
for /f %%i in (‘dir /b /ad’) do rd /s /q %%i
pause

Leave a Reply