- for /l %%a in (0,1,3002) do (
- set name=10000000000%%a
- set name=!name:~-%wei%!
- if not exist d:\!name!.jpg (
- echo 丢失文件名:!name!.jpg
- )
- )
- goto error
复制代码 全部输出完就在后面加goto- for /l %%a in (0,1,3002) do (
- set name=10000000000%%a
- set name=!name:~-%wei%!
- if not exist d:\!name!.jpg (
- echo 丢失文件名:!name!.jpg
- call :error
- )
- )
复制代码 输出一条就goto error的话要用call |