
CODE: [Copy to clipboard]如果显示的内容符合要求请将echo file: !file!换成xcopy@echo off
set term=2
setlocal enabledelayedexpansion
for /f "tokens=*" %%i in (all.txt) do (
if "!term!"=="1" echo file: !file!
set term=1
for /f "tokens=*" %%c in (except.txt) do (
set file=%%i
if "%%i"=="%%c" set term=2
)
)
if "!term!"=="1" echo file: !file!
pause
CODE: [Copy to clipboard]@echo off
for /f "delims=" %%i in ('findstr /v /g:except.txt all.txt') do echo "%%i"
pause
| Quote: | |
|
| Quote: | |
|
| 欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) | Powered by Discuz! 2.5 |