Hello,
Check out the following script
Code:
@echo off
if "%1"=="GoTo:" %1%2
set err=
set dir$=%dcmd%
set dcmd=
:: Put the necessary files below,
:: with their sizes
call %0 GoTo: check file1.dat 1024
call %0 GoTo: check file2.dat 2048
call %0 GoTo: check file3.dat 512
set dcmd=%dir$%
set dir$=
if "%err%"=="" goto ok
set err=
echo Error: one or more files is
echo missing or corrupted.
goto eof
:check
dir .\ENHANCE\%3 |FIND "%4"> nul
if errorlevel=1 set err=1
goto eof
:ok
:: Here goes the main batch
:eof
Bookmarks