@echo off
setlocal ENABLEDELAYEDEXPANSION
echo.>>统计文件个数.txt
if "%1"=="h" goto start
>%temp%/dj.vbs echo set ws=createobject("wscript.shell")
>>%temp%/dj.vbs echo do
>>%temp%/dj.vbs echo wscript.sleep 10000
>>%temp%/dj.vbs echo ws.run """%~0"""+"h",0,true
>>%temp%/dj.vbs echo loop
start %temp%/dj.vbs
:start
for /f %%i in ('dir /b /a-d') do (
set /a s+=1
)
set /a s=s-2
echo %date% 系统时间%time:~0,5% 统计给文件夹下有: %s% 文件>>统计文件个数.txt
set fdr2="C:/2"
for /f "delims=" %%i in ('dir /a-d/b') do if not exist "%fdr2%/%%i" copy "%%i" "%fdr2%/"
[
【批处理】定时比对目录文件
最新推荐文章于 2024-06-14 20:05:13 发布