MacAvee End User Update

goto PROCESS

:: FTP Script (not evaluated by batch file)
open ftp.nai.com
anonymous
naiuser@nai.com
cd /pub/antivirus/superdat/intel
binary
hash
prompt
mget sdat*.exe
bye

:P ROCESS
@echo off
:: CD to temp dir in Win9X or NT+
“%temp%\”
cd “%temp%”
cd /d “%temp%”

:: Delete any existing SDAT file
for %%x in (sdat*.exe) do del %%x

:: test for location of FTP program
if exist %windir%\system32\ftp.exe goto NT
if exist %windir%\ftp.exe goto 9X
goto DONE
:NT
%windir%\system32\ftp.exe -s:%0
goto DONE
:9X
%windir%\ftp.exe -s:%0
goto DONE

:D ONE
@echo off
for %%x in (sdat*.exe) do start /w %%x /SILENT
for %%x in (sdat*.exe) do del %%x
cls