Your Ad Here

The Free Automated On-Demand Anti-Spyware Scanner

I was over at my Dad’s house today and was looking for a way to automate the maintenance on his computer to the point that I didn’t have to do anything on his PC except for the Windows Updates (I don’t let them install automatically). So I whipped up a little *.cmd file that performs general maintenance on his PC, disk cleanup, defrag, and an Anti-Spyware scan. Backups and AV scans have been running on their own forever, so I just worked around the scheduled times for those.

So after I got home tonight I realized that with a little tweaking I could get the spyware scan setup for anyone to use. Requirements for it to work:

  • Latest version of AVG Anti-Spyware
  • wget for Windows
  • The batch script I scrounged together (see code below)

Install AVG Anti-Spyware, and then extract wget to a directory on your PC. So without further adue here is the script itself.

:: Covaro’s Ewidoscan Scheduled Task Batch File
:: Release 1.0
:: Please visit http://www.notmyblog.com for all information regarding this program
:: Any and all comments, suggestions, etc can be directed to spamland[at]notmyblog.com

@echo off

:: Change this entry if you did not install AVG Anti-Spyware to the default location
SET AVGDir=%PROGRAMFILES%\Grisoft\AVG Anti-Spyware 7.5\

:: Check to see if Ewidoscan is already installed, and if not install the file
IF EXIST “%AVGDir%\ewidoscan.exe” GOTO update
WGET –output-document=ewidoscan.exe –ignore-length “http://downloads.ewido.net/ewidoscan.exe”
COPY ewidoscan.exe “%AVGDir%” /Y

:update
:: We are going to start off by updating the definition files for the scan.
WGET –output-document=avgasupdate.exe –ignore-length “http://downloads.ewido.net/avgas-signatures-full-current.exe”
avgasupdate.exe /S

:: Now we update the scan engine DLL
WGET –output-document=engine.dll –ignore-length “http://downloads.ewido.net/engine.dll”
copy engine.dll “%AVGDir%” /Y

:: Cleanup files now, with a check to make sure that the batch file isn’t running in the same dir as AVG Anti-Spyware
erase avgasupdate.exe /q
IF “%CD%”==”%AVGDir%” GOTO scan
erase engine.dll /q

:scan
:: Now going to perform a scan of the computer with log output to the AVG Anti-Spyware Directory
:: We switch to the AVG Anti-Spyware directory first, because the Ewidoscan seems to try to use the directory
:: that you run it from as the working directory, so it won’t find the definitions otherwise.
cd “%AVGDir%”
ewidoscan.exe /clean /backup /memory /registry /nocookies c:\Windows /report=scanlog.txt

:: The scan should now be completed.

The batch file requires that the AVG Guard Service is not running (I usually set it to manual) and that AVG Anti-Spyware does not start automatically with Windows. If you have any comments/questions or bugs please let me know so I can update the code. It hasn’t been thoroughly tested, since the one at my Dad’s doesn’t use any variables or the like, it’s all hard coded. Works well at my Dad’s house in conjunction with a CCleaner scan and followed up with a defrag on a weekly basis.

Posted: 10/15/2006 in: