本帖最后由 pcl_test 于 2015-4-7 17:57 编辑
- @echo off
- if not exist "run.log" >"run.log" echo,0
- ::set /p b=<"run.log"
- for /f "delims=" %%a in ('type "run.log"') do set b=%%a
- set /a b+=1
- >"run.log" echo,%b%
- if %b% == 1 (echo copy "a\1234.txt" "x\1234.txt" /y
- ) else if %b% == 2 (echo copy "b\1234.txt" "x\1234.txt" /y
- ) else if %b% == 3 (echo copy "c\1234.txt" "x\1234.txt" /y
- ) else if %b% == 4 (echo copy "d\1234.txt" "x\1234.txt" /y)
- pause
复制代码
|