Automatic update of Sophos IDE files

P

Paul

For some time I was wondering how to get my home and office PC's to
automatically download the Virus IDEntity file updates from the Sophos
website. I found a way to do this using the batch file below. Execution of
the batchfile can be invoked from a scheduler or taskmanager. I included
self-explanatory comments. Cut and paste it with notepad and save the file
as SophosGET.BAT.

Please let me know if you like this setup or found other solutions.

Paul Joosten

//begin of SophosGET.BAT
@echo off

:: SophosGET.bat
:: Written by Paul Joosten email (e-mail address removed)
:: Any comments or questions on this batchfile are welcome.

:: SophosGET.bat gets you the latest .IDE files from Sophos,
:: only when a working internet connection exists and unpacks
:: any new virus IDEntity information files it finds.
:: This will help you to keep Sophos completely up-to-date.

:: If invoked from Taskmanager with minimised GUI window
:: this will run automatically without the user noticing
:: anything (much). This batchfile assumes you have SGET.exe
:: and PKUNZIP.exe in the Sophos program directory or
:: somewhere in the PATH variable. SGET can be found on the
:: Sophos CD-ROM and is described on their website.
:: PKUNZIP can be found on many places on the internet.
:: Good luck in the battle against viruses!

:: Change the path to the Sophos program directory
C:
cd \Progra~1\Sophos~1

:: check_if_connected
ping -n 1 213.86.172.147 |find "Host unreachable" >nul
:: This is the IP-nummer of www.sophos.com, the text between
:: "" might have to be adapted to your operating system.
if not errorlevel 1 goto end ::modem not connected.
if errorlevel 1 goto connected

:connected
if exist ides.zip del ides.zip
SGET http://www.sophos.com/downloads/ide/ides.zip
pkunzip ides.zip -n

:end
//end of SophosGET.BAT
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Sophos Update Batch file 2

Top