liaoguinan 当前离线
二级士官
czjt1234 当前离线
少校
@echo off cd /d "C:\Users\Administrator\Desktop\测试" for /f "delims=" %%i in ('dir /ad /s /b') do ( if "%%~nxi" == "小明" rd /q/s "%%i" if "%%~nxi" == "小绿" rd /q/s "%%i" ) pause复制代码
TOP
ShowCode 当前离线
VIP1
@echo off dir /b /s /a-d "%userprofile%\Desktop\测试\001啊实打实大师" | findstr /i /v /c:"\\小明\\" /c:"\\小绿\\" pause复制代码
@echo off dir /b /s /a-d "%userprofile%\Desktop\测试\001啊实打实大师" | findstr /i /v /c:"\\小明\\" /c:"\\小绿\\" > "%userprofile%\Desktop\结果.txt"复制代码