home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1998 November
/
pcwk_11_98a.iso
/
AV
/
Avast770
/
Avast16
/
SCAN.BAT
< prev
next >
Wrap
DOS Batch File
|
1998-07-29
|
2KB
|
85 lines
echo off
if x%1==x goto Usage
rem
rem Batch file for LGuard (c) 1991-98 Pavel Baudis, ALWIL Software
rem This batch is a part of AVAST! version 7.70
rem
rem Usage: SCAN C: D: E: F:
rem
rem SCAN.BAT finds viruses on the disks C: through F:
rem If some virus is found or if the program is interrupted by
rem user, this batch file will terminate.
rem
rem Note: You may modify this batch file to meet your needs.
rem
:loop
lguard.exe %1
if errorlevel 99 goto exit1
if errorlevel 98 goto exit1
if errorlevel 4 goto error
if errorlevel 3 goto inter
if errorlevel 2 goto diskvir
if errorlevel 1 goto memvir
cls
echo.
echo. ***** Drive %1 is virus free *****
echo.
:back
if x%2==x goto ok
shift
goto loop
:Usage
echo.
echo. This batch file searches for viruses on specified drives.
echo.
echo. Usage:
echo.
echo. SCAN C: D: F: G:
echo.
echo. (specify drives you wish checked on the command line)
echo.
goto exit1
:error
cls
echo.
echo. SCAN: error while working with drive %1 !
echo.
goto exit1
:inter
cls
echo.
echo. SCAN: interrupted by user (virus not found)
echo.
goto exit1
:memvir
cls
echo.
beep
echo ********************************************************
echo. ***** Virus found in memory! *****
echo. ***** VIRUS WAS NOT DISABLED IN MEMORY! *****
echo. ***** *****
echo. ***** Please remove any disk from drive A: and *****
echo. ***** press [CTRL][ALT][DEL] to reboot *****
echo. ***** or press any other key to continue *****
echo ********************************************************
pause
goto exit1
:diskvir
cls
echo.
beep
echo ******************************************
echo. ***** Virus found on drive %1! *****
echo. ***** Virus was NOT removed! *****
echo ******************************************
pause
goto back
:ok
echo.
echo. *********************************
echo. ***** virus search finished *****
echo. *********************************
echo.
:exit1