Batch file 用于删除文件夹但排除';准备';单词
我正在寻找脚本,它将删除所有文件夹中包含德尔字在名称的结尾,但不包括包含准备字Batch file 用于删除文件夹但排除';准备';单词,batch-file,Batch File,我正在寻找脚本,它将删除所有文件夹中包含德尔字在名称的结尾,但不包括包含准备字 这应该可以做到: @echo off for /f "delims=" %%i in ('dir /a:d /s /b ?*del') do echo %%i | find /i "prep" >nul || rd /s /q "%%i" 请把问题按答案写出来! @echo off for /f "delims=" %%i in ('dir /a:d /s /b ?*del') do echo %%i |
这应该可以做到:
@echo off
for /f "delims=" %%i in ('dir /a:d /s /b ?*del') do echo %%i | find /i "prep" >nul || rd /s /q "%%i"
请把问题按答案写出来!
@echo off
for /f "delims=" %%i in ('dir /a:d /s /b ?*del') do echo %%i | find /i "prep" >nul || rd /s /q "%%i"