home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Multimedia 3
/
CD_1.iso
/
viruskil
/
solomon
/
lvirnxt.bat
< prev
next >
Wrap
DOS Batch File
|
1994-11-10
|
2KB
|
78 lines
@echo off
cls
rem Author: A.J. Bruce Date: 07.01.94
rem Version: 4.3
rem Name: LVIRNXT.BAT
rem Desc: Check all hard drives on a PC for virusses when logging on
rem to a server. A complete scan of all drives is made.
rem All local drives will be scanned.
rem
rem Modification History:
rem Version: 4.0
rem Documentation now LVIRCHK.DOC
rem
v:
cd \appl\solomon
:Welok
if exist c:\viruschk.tmp del c:\viruschk.tmp
echo Virus control program > c:\viruschk.lst
cls
be wi 1,2,09,78,bright yellow on blue
be ro 2,59,"Version: 7.03/6.68",bright yellow
be ro 3,10,"Your PC will now be checked for viruses.",bright yellow
be ro 5,10,"Please be patient.....",bright yellow
:Scan
be ro 07,20,"Checking local drives",blinking white on blue
be ro 21,01
findviru.exe /local /P=N /B=Y /E=Y /silent /oneonly
if errorlevel = 255 goto Findc
if errorlevel = 3 goto Error1
if errorlevel = 2 goto Alarm
if errorlevel = 1 goto Error1
if errorlevel = 0 goto Ok
:Ok
be ro 07,20," Check completed: OK ",bright yellow
if exist c:\viruschk.tmp del c:\viruschk.tmp
goto Einde
Rem
Rem End processing when a virus has been found.
Rem
:Alarm
Rem copy c:\viruschk.lst + c:\viruschk.tmp c:\viruschk.lst > nul
if exist c:\viruschk.tmp del c:\viruschk.tmp
echo
be ro 07,20," BAD BAD BAD BAD BAD ",bright red
if exist c:\virus.bad del c:\virus.bad
ren c:\viruschk.lst virus.bad > nul
ncopy c:\virus.bad s:%N_UID%.vir > nul
if exist c:\viruschk.ctl del c:\viruschk.ctl
if exist c:\viruschk.tmp del c:\viruschk.tmp
if exist c:\viruschk.not del c:\viruschk.not
be lvirchk.sc1
be ask "", timeout=10
c:
z:\public\logout
goto Eeinde
:Error1
be ro 15,0
ECHO ERROR The virus control program has ended with an error.
ECHO ERROR Please contact your local PC support.
ECHO ERROR The Login will be completed normally.
ECHO ERROR Press any key to continue.
be ask ""
goto Eeinde
:Einde
ren c:\viruschk.not viruschk.ctl > nul
if exist c:\virus.bad del c:\virus.bad > nul
:Eeinde
cd \
c:
if exist c:\viruschk.lst del c:\viruschk.lst > nul
if exist c:\viruschk.tmp del c:\viruschk.tmp > nul
if exist c:\viruschk.not del c:\viruschk.not > nul
be ro 24,0
rem
rem Finished.
rem
:Finish