- @echo off
- cd /d "%~dp0"
- cd ..
- if not exist "%~dp0list.txt" (
- call :1
- ) else (
- del /q "%~dp0记录表*" 2>nul
- for /f "useback delims=" %%a in ("%~dp0list.txt") do (
- set %%a
- )
- for %%a in (记录表*.*) do (
- if not defined _"%%a%%~ta" (
- copy "%%a" "%~dp0"
- )
- )
- call :1
- )
- pause & exit
-
- :1
- (for %%a in (记录表*.*) do (
- echo _"%%a%%~ta"=1
- ))>"%~dp0list.txt"
- exit /b
复制代码
|