cxq00 当前离线
列兵
newswan 当前离线
上尉
for /f %%a in (list.txt) do ( echo del *%%a*.* ) pause exit/b复制代码
TOP
77七 当前离线
中校
@echo off rem 保存为ansi cd /d "%~dp0" set file=d:\1.txt for /f "delims=" %%i in ('dir /b /a-d *.txt') do ( call :1 "%%i" ) pause exit :1 for /f "useback delims=" %%a in ("%file%") do ( find "%%a" "%~1" 1>nul if not errorlevel 1 ( del "%~1" echo find "%%a" del "%~1" exit /b ) ) exit /b复制代码
@echo off set list="E:\文件\list*.txt" set dest="E:\文件\文档汇总" pushd %dest% for /f "usebackq tokens=* delims=" %%a in (` type %list% `) do ( echo del *%%a*.* ) popd pause exit/b复制代码
aloha20200628 当前在线
@echo off &for /f "delims=" %%F in ( 'dir /b/a-d E:\文件\文档汇总\*.txt' ) do findstr /limg:"1.lst" "E:\文件\文档汇总\%%F"&&del /q "E:\文件\文档汇总\%%F" pause&exit/b复制代码
@echo off rem 保存为ansi cd /d "E:\文件\文档汇总" set file=E:\文件\1.txt for /f "useback delims=" %%i in ("%file%") do ( for /f "tokens=1*" %%a in ('find "%%i" *.txt') do ( if "%%a" equ "----------" ( set m=%%b ) else ( call del "%%m%%" 2>nul ) ) ) pause复制代码
qixiaobin0715 当前离线
大校