我想运行一个运行一个月的批处理脚本。代码如下。它处理大量视频并将其各种输出发送到各种文件夹。问题是如果它在无人看管的情况下运行一个月,磁盘可能已满。我希望它检查磁盘是否已满并继续写入另一个磁盘。有日志也不错
`@echo off
setlocal enabledelayedexpansion
set EXE_FILE=E:\opencv\build\bin\Release\blobtrack_sample.exe
set INPUT_PATH=E:\Glasgow\Test\
set TRACKS_PATH=E:\Glasgow\Tracks\
set OUTPUT_PATH=E:\Glasgow\Result\
set COUNT=0
pushd %INPUT_PATH%
for %%f in (*) do if %%f neq %~nx0 (
set /a COUNT+=1
echo Processing %%f, track=%%~nf.txt, btavi=test!COUNT!%%~xf
%EXE_FILE% fg=FG_0S bd=BD_CC bt=CCMSPF btpp=None bta=Kalman btgen=RawTracks track=%TRACKS_PATH%\%%~nf.txt FGTrainFrames=125 btavi=%OUTPUT_PATH%\%%~nf.avi %%f
)
popd`