@echo off
rem -- process a single upload file - for ProDOOR 3.4
rem -- %1-logfile, %2-testfile, %3-comport, %4-conference
rem -- determing file type and branch to proper test case
rem -- using 4DOS commands
if %@ext[%2] == gif goto gif
if %@ext[%2] == zip goto zip
if %@ext[%2] == exe goto zip
if %@ext[%2] == lzh goto zip
if %@ext[%2] == arj goto zip
goto end
rem -- Check GIF, delete if invalid or incomplete GIF file and
rem -- add resolution to description
:gif
giftest %2 /P:%3/E/L/B:1/D/M:321x201x16/F:\prolon%pcbnode%\$door.nam
goto end
rem -- test ZIP files
rem -- ZipLab Plus tests ZIP, ARJ, and LZH files
:zip
ptest %2 ptest%pcbnode%.cfg
rem -- Check for AV in the file
proecho %3 ~~ChkAv 2.2 - Courtesy of The Bard's Lair (718)381-3651~
proecho %3 ~Checking for -AV~
chkav %2
if errorlevel == 2 av
goto end
rem -- Found AV
:av
proecho %3 ~~Found -AV in file, sending mail to SysOp to revue file... ~
echo User has uploaded the file: %2 > mail
echo which contains an -AV in it, please revue file. >> mail
txt2msg f:\bbs\main\msgs -tSYSOP -fPROUTEST -sAV_File mail
del mail
goto end
:end