home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Select: Multimedia 3
/
CD_1.iso
/
viruskil
/
solomon
/
lvirchk.bat
< prev
next >
Wrap
DOS Batch File
|
1994-11-02
|
2KB
|
76 lines
@echo off
cls
rem Author: A.J. Bruce Date: 07.01.94
rem Version: 4.0
rem Name: LVIRCHK.BAT
rem Desc: Check if a scan has been made. If not, call LVIRNXT.BAT.
rem
rem Modification History:
rem Version: 4.0
rem Documentation now in LVIRCHK.DOC
rem
:Begin
rem
rem The following users will not be controlled.
rem
:Next
if %N_UID%==GATEWAY goto Neinde
if %N_UID%==HOST30 goto Neinde
rem if %N_UID%==DOCENT goto Neinde
:Ftime
v:
cd \appl\solomon
rem
rem Control if a virus control has been made for this PC today. If so,
rem no further control will be made today.
rem
if exist c:\viruschk.not attrib c:\viruschk.not -r > nul
if exist c:\viruschk.ctl attrib c:\viruschk.ctl -r > nul
if exist c:\viruschk.tmp attrib c:\viruschk.tmp -r > nul
if exist c:\viruschk.lst attrib c:\viruschk.lst -r > nul
if exist c:\virus.bad attrib c:\virus.bad -r > nul
If not exist c:\viruschk.ctl goto Hash2
:Hash1
lvirhash c:\viruschk.ctl
if errorlevel = 2 goto Fout
if errorlevel = 1 goto Wel
if errorlevel = 0 goto Geen
:Wel
del c:\viruschk.ctl > nul
:Hash2
echo Virus control program > c:\viruschk.not
lvirhash c:\viruschk.not
if errorlevel = 2 goto Fout
goto Welok
:Fout
if exist c:\viruschk.not del c:\viruschk.not
if exist c:\viruschk.ctl del c:\viruschk.ctl
if exist c:\viruschk.tmp del c:\viruschk.tmp
cls
be wi 1,2,5,78,bright yellow on blue
be ro 3,10,"Your PC cannot be controlled for viruses !!!",bright yellow
goto Eeinde
:Geen
if exist c:\viruschk.tmp del c:\viruschk.tmp
rem cls
rem be wi 1,2,5,78,bright yellow on blue
rem be ro 3,10,"Your PC has already been checked for viruses today.",bright yellow
goto Neinde
:Welok
call lvirnxt
:Neinde
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
:Further
cls
:Finish