本帖最后由 qixiaobin0715 于 2021-6-18 10:50 编辑
把test.bat和1.txt放在桌面或与文件夹yuantu平行的目录中运行,未经测试:- @echo off
- setlocal enabledelayedexpansion
- for %%a in ("yuantu\*.jpg") do set -%%~na=ture
- (for /f "delims=" %%i in (1.txt) do if not defined -%%~ni echo,不存在文件:%%~ni.jpg)>2.txt
- pause
复制代码
|