区分大小写是什么意思?a.txt中的列表大小写与实际不同,也要按不存在输出?
1,不区分大小写:- @echo off
- (for /F "delims=" %%a in (a.txt) do if not exist "D:\images\%%a" echo.%%a)>b.txt
复制代码 2,区分大小写:- @echo off
- (for /F "delims=" %%a in (a.txt) do if exist "D:\images\%%a" (for %%b in ("D:\images\%%a") do if not "%%~fa"=="D:\images\%%a" echo.%%a) else echo.%%a)>b.txt
复制代码
|