MS-Dos Batch files for updating.

  • Thread starter Thread starter Brendan DJ Murphy
  • Start date Start date
B

Brendan DJ Murphy

I would like to write a simple MS-DOS batch file consisting of commands to
automatically update my protection and scan my system.


Is there a command-line instruction for McAfee (Enterprise 7.1.0) to perform
an update and then to perform a full disc scan ?

Also, a similar request for "SpywareBlaster" and "Spybot S&D"

One simple MS-DOS batch-file to keep my system protected.
Nice and simple for my father (who is still a computer-novice) to use.


I have cross-posted this to two relevant newsgroups
(a.c.anti-virus & a.p.spyware)

Many thanks

Brendan
 
I would like to write a simple MS-DOS batch file consisting of commands
to automatically update my protection and scan my system.

You would have to check the site of the specific AntiVirus/AntiSpyWare
company for something like manual downloads. If they support it, and the
pattern updates are located on an ftp server you can use the commandline
ftp program with a commandscript to get it unsupervised. Try
ftp -?
for a list of options (that is -? and *not* /?).

This works in combination with F-Prot, which also has features to load the
updated patterns from a local (network) location, detailed instructions
are available on their website.

What is wrong with the build-in automatic update feature?
 
Brendan said:
I would like to write a simple MS-DOS batch file consisting of commands to
automatically update my protection and scan my system.

I've been meaning to try KeyText 2000, which is a macro program. It can
do text (which is scriptable anyway), and supposedly some GUI functions
as well.

michael
 
Hiya,

Here are the direct download addresses for some of the popular antivirus and
spyware updates:

http://download.nai.com/products/mcafee-avert/stinger.exe
http://files.avast.com/files/eng/aswclnr.exe
http://download.lavasoft.de.edgesuite.net/public/defs.ref
ftp://ftp.mcafee.com/pub/antivirus/superdat/intel/sdat*.exe
ftp://ftp.symantec.com/public/english_us_canada/antivirus_definitions/norton_antivirus/static/symcdefsi32.exe

If you use GNU Wget (http://wget.sunsite.dk/) you can automate the download
of these files when needed and then use a .CMD or .BAT file to process them
after download e.g. move the file to where it's needed or unzip it as
necessary.

Kind Regards

Simon
--
 
Brendan said:
I would like to write a simple MS-DOS batch file consisting of
commands to automatically update my protection and scan my system.


Is there a command-line instruction for McAfee (Enterprise 7.1.0)
to perform an update and then to perform a full disc scan ?

I use only use McAfee VirusScan Command Line.
This is a batch I use to update the DAT files.
It can be run from a Cron job or triggered by a AVERT mailing.

You may find some ideas for use in your application.

@d:
@cd d:\mcafee
@set log=avupdate.log
@echo ---- BEGIN UPDATE REPORT ---- >> %log%
@echo. >> %log%
@nowminus 'Generated: * f256 u-6 i r >> %log%
@echo. >> %log%
@wget -olog.tmp -t 3 -w 2m -nr -nv -N ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/update.ini
@egrep -h "update.ini..\[1\]" log.tmp
@if errorlevel 1 goto noupdate
@type log.tmp >> %log%
@egrep -h dat\-.+\.zip$ update.ini | cut -b 10- - > url.txt
@wget -a%log% -iurl.txt -t 3 -w 2m -nr -nv -N -Bftp://ftp.nai.com/pub/antivirus/datfiles/4.x/
@choice /c:yn /n /t:y,1 >nul
@pkunzip -n *.zip >> %log%
:end
@for %%a in (*.diz .listing *.tmp dat*.zip) do del %%a
@for %%b in (pkgdesc.* *.lst *.txt) do move %%b d:\mcafee\docs\
@trim %log% 30000 120 1>nul
@echo ---- END UPDATE REPORT ---- >> %log%
@echo. >> %log%
@cls
@exit
:noupdate
@echo No Update Available >> %log%
@echo. >> %log%
@goto end
 
Guy said:
You may find some ideas for use in your application.

@d:
@cd d:\mcafee
@set log=avupdate.log
@echo ---- BEGIN UPDATE REPORT ---- >> %log%
@echo. >> %log%
@nowminus 'Generated: * f256 u-6 i r >> %log%
@echo. >> %log%
@wget -olog.tmp -t 3 -w 2m -nr -nv -N ftp://ftp.nai.com/pub/antivirus/datfiles/4.x/update.ini
@egrep -h "update.ini..\[1\]" log.tmp
@if errorlevel 1 goto noupdate
@type log.tmp >> %log%
@egrep -h dat\-.+\.zip$ update.ini | cut -b 10- - > url.txt
@wget -a%log% -iurl.txt -t 3 -w 2m -nr -nv -N -Bftp://ftp.nai.com/pub/antivirus/datfiles/4.x/
@choice /c:yn /n /t:y,1 >nul
@pkunzip -n *.zip >> %log%
:end
@for %%a in (*.diz .listing *.tmp dat*.zip) do del %%a
@for %%b in (pkgdesc.* *.lst *.txt) do move %%b d:\mcafee\docs\
@trim %log% 30000 120 1>nul
@echo ---- END UPDATE REPORT ---- >> %log%
@echo. >> %log%
@cls
@exit
:noupdate
@echo No Update Available >> %log%
@echo. >> %log%
@goto end

Sweet!

michael
 
I use only use McAfee VirusScan Command Line.
This is a batch I use to update the DAT files.
It can be run from a Cron job or triggered by a AVERT mailing.

You may find some ideas for use in your application.

<snip>

Thanks for your time in replying, but having read the "Help" (admittedly
something I should have done more in depth before posting my original
question), I have come across a simple one-liner...


"C:\Program Files\Network Associates\VirusScan\mcupdate.exe"

Does the job nicely.


As for Spybot Search and destroy....

SpybotSD.exe /autoupdate /autoimmunize /autocheck /autofix /autoclose


SpywareBlaster requires payment for autoupdate.

regards
Brendan
 
Back
Top