I am trying to get the Batch file from declude tools page to work for
me.  I pasted it below and I'm getting the following errors.  I was
hoping someone could point me in the right direction.

Thanks,
Aaron Caviglia
[EMAIL PROTECTED]

Errors when running the batch file are:
Host unknown and Error in server response.

Fprotup.bat
-------------------------------------------
rem Update of F-Prot update program to eliminate redundant downloads.
rem Requires info-zip's unzip.exe 5.42 www.info-zip.org
rem Requires gnu wget, links to Windows binaries at www.wget.org or
www.cygwin.com
rem Will keep the last three versions of f-prot on disk. 

SETLOCAL

:Set Path Info
SET fprotdrv=c:
SET fprotdir=\Program Files\FSI\F-Prot
SET DownloadDir=%fprotdrv%%fprotdir%\update

:Set Unzip Command Info
SET unzipcmd=UNZIP -o -u
SET unziptail=-x f-prot.pif -d %fprotdrv%%fprotdir%

:Set FTP Info
SET wgetcmd=c:\cygwin\bin\wget.exe 
SET BaseURL=ftp://ftp.f-prot.com

rem :CheckDirectories
rem md %fprotdrv%%fprotdir%
rem md %DownloadDir%
rem if not exist %DownloadDir% goto end

:FTPDownload
%wgetcmd% -t 2 -N -nv -P %DownloadDir% %BaseURL%/pub/fp-3*.zip
%BaseURL%/pub/fp-def.zip 
%BaseURL%/pub/macrdef2.zip  2>&1 | find "in 0 files"
if errorlevel 1 goto UnzipFiles
goto end 

:UnzipFiles
SET T=0
for /F %%I in ('dir %DownloadDir%\fp-3*.zip /a-d-s /b /o:-d') do call
:DoNewVersion 
%DownloadDir%\%%I 
%unzipcmd% %DownloadDir%\fp-def.zip %unziptail%
%unzipcmd% %DownloadDir%\macrdef2.zip %unziptail%

:Cleanup 
attrib -r %DownloadDir%\*.zip
if exist %fprotdrv%%fprotdir%\f-prot.pif del
%fprotdrv%%fprotdir%\f-prot.pif
goto end

:DoNewVersion
SET /a T = 1+%T%
if %T% EQU 1 %unzipcmd% %1 %unziptail%
if %T% LEQ 3 goto :DoNewVersion_exit
if exist %1 del /F %1  
:DoNewVersion_exit
echo %T%
goto :EOF

:END
ENDLOCAL



Please visit http://www.ipswitch.com/support/mailing-lists.html 
to be removed from this list.

An Archive of this list is available at:
http://www.mail-archive.com/imail_forum%40list.ipswitch.com/

Reply via email to