本帖最后由 digger 于 2018-8-8 12:43 编辑
回复 1# 252007313 - @echo off&setlocal enabledelayedexpansion
- set Dir=C:\Release\ftp\up4
- set Files=1.jpg,2.jpg,3.jpg,4.jpg
- set name=!Files:,=^
-
- !
- cd /d "%Dir%"
- :Loop
-
- rem 延时3S
- choice /t 3 /d y /n >nul
-
- set "Num=0" & set "AllNum=" & set "Old="
- for /f "delims=" %%a in ('dir /ad/o-d/b') do set "Old=%%~a"
- if defined Old (
- for /f "delims=" %%i in ("!name!") do (
- set /a AllNum+=1
- if exist "!Old!\%%~i" set /a Num+=1
- )
-
- )
- if not defined AllNum goto Loop
- if not !Num! equ !AllNum! goto Loop
-
- cd C:\Release
- C:\Release\ftp\bat\!Old!.bat
- pause
复制代码
|