Recursively delete all folders starting with

后端 未结 5 648
礼貌的吻别
礼貌的吻别 2021-02-05 20:24

I need to write a command in a .bat file that recursively deletes all the folders starting with a certain string. How may I achieve this ?

5条回答
  •  梦谈多话
    2021-02-05 21:18

    FOR /F "tokens=*" %i IN ('DIR **[[SearchTerm]]** /A:D /s /b') do rd /S / Q %i
    

提交回复
热议问题