See below, response bottom-posted.
----- Original Message -----
Sent: Tuesday, August 28, 2001 2:51 PM
Subject: Re: [IMail Forum] Declude virus, Mcafee or F-prot?

Here's the script info.

1) create a DOS batch file that calls the ftp script and runs the unzip command.
I placed it in my F-Prot folder.

--------- getdefs.bat ---------
ftp -s:script.txt
unzip.exe -o macrdef2.zip
-------------------------------

( I got the unzip.exe file from the FreeZip utility that you can get at most
shareware sites.  You can also download FreeZip from my job's ftp site:
ftp://www.mlc.lib.ms.us/pub/mlc/software/misc/freezip.exe. The "-o" option tells
it to overwrite existing files without prompting.

2) the script it calls is located in the same folder (you might try ftp.frisk.is instead of ftp1.mirrors.complex.is)

--------- script.txt ---------
open ftp1.mirrors.complex.is
anonymous
(your e-mail address goes here)
cd pub/
bin
hash
prompt
get macrdef2.zip
quit
----------------------------

That only updates the macro virus defs.  My batch file(also using the info-zip unzip.exe) follows.  It updates all three signature files, as well as the .exe, and takes care of the .pif file included with F-Prot that can cause problems with Declude.

I have run this since F-Prot 3.04, and have automatically received every signature and program update without fail.

---- Begin UpdFProt.cmd:

SETLOCAL

:Set Path Info
SET fprotdrv=f:
SET fprotdir=\vscan\FPROT
SET unzipcmd=UNZIP -o -u

SET unziptail=-x f-prot.pif -d %fprotdrv%%fprotdir%
SET FTPDir=/pub/
SET FTPServer=ftp1.mirrors.frisk.is
SET ftpscript=%fprotdrv%%fprotdir%\update\updfprot.ftp


md %fprotdrv%%fprotdir%
md %fprotdrv%%fprotdir%\update
if not exist %fprotdrv%%fprotdir%\update goto end
pushd %fprotdrv%%fprotdir%\update

:WriteFTPScript
rem Here to avoid an extra file to maintain.
ECHO open %FTPServer%> %ftpscript%
ECHO anonymous>> %ftpscript%
ECHO [EMAIL PROTECTED]>> %ftpscript%
ECHO prompt>> %ftpscript%
ECHO binary>> %ftpscript%
ECHO get %FTPDir%f-prot.zip>> %ftpscript%
ECHO get %FTPDir%fp-def.zip>> %ftpscript%
ECHO get %FTPDir%macrdef2.zip>> %ftpscript%

:FTPDownload
if exist %fprotdrv%%fprotdir%\update\*.zip del %fprotdrv%%fprotdir%\update\*.zip
%windir%\system32\ftp -s:%ftpscript%

:UnzipFiles
%unzipcmd% f-prot.zip %unziptail%
%unzipcmd% fp-def.zip %unziptail%
%unzipcmd% macrdef2.zip %unziptail%

:Cleanup
rem if exist %fprotdrv%%fprotdir%\update\f-prot.zip del %fprotdrv%%fprotdir%\update\f-prot.zip
rem if exist %fprotdrv%%fprotdir%\update\fp-def.zip del %fprotdrv%%fprotdir%\update\fp-def.zip
rem if exist %fprotdrv%%fprotdir%\update\macrdef2.zip del %fprotdrv%%fprotdir%\update\macrdef2.zip
if exist %fprotdrv%%fprotdir%\f-prot.pif del %fprotdrv%%fprotdir%\f-prot.pif

popd

:END
ENDLOCAL

--- End UpdFProt.cmd

 

Reply via email to