home *** CD-ROM | disk | FTP | other *** search
/ The Best of Select: Multimedia 3 / CD_1.iso / viruskil / solomon / lvirchk.bat < prev    next >
DOS Batch File  |  1994-11-02  |  2KB  |  76 lines

  1. @echo off
  2. cls
  3. rem  Author: A.J. Bruce                     Date: 07.01.94
  4. rem  Version: 4.0
  5. rem  Name: LVIRCHK.BAT
  6. rem  Desc: Check if a scan has been made. If not, call LVIRNXT.BAT.
  7. rem
  8. rem  Modification History:
  9. rem  Version: 4.0
  10. rem        Documentation now in LVIRCHK.DOC
  11. rem
  12. :Begin
  13.   rem
  14.   rem The following users will not be controlled.
  15.   rem
  16. :Next
  17.   if %N_UID%==GATEWAY  goto Neinde
  18.   if %N_UID%==HOST30   goto Neinde
  19. rem  if %N_UID%==DOCENT   goto Neinde
  20. :Ftime
  21.   v:
  22.   cd \appl\solomon
  23.   rem
  24.   rem Control if a virus control has been made for this PC today. If so,
  25.   rem no further control will be made today.
  26.   rem
  27.   if exist c:\viruschk.not attrib c:\viruschk.not -r > nul
  28.   if exist c:\viruschk.ctl attrib c:\viruschk.ctl -r > nul
  29.   if exist c:\viruschk.tmp attrib c:\viruschk.tmp -r > nul
  30.   if exist c:\viruschk.lst attrib c:\viruschk.lst -r > nul
  31.   if exist c:\virus.bad    attrib c:\virus.bad    -r > nul
  32.   If not exist c:\viruschk.ctl goto Hash2
  33. :Hash1
  34.   lvirhash c:\viruschk.ctl
  35.   if errorlevel = 2 goto Fout
  36.   if errorlevel = 1 goto Wel
  37.   if errorlevel = 0 goto Geen
  38. :Wel
  39.   del c:\viruschk.ctl > nul
  40. :Hash2
  41.   echo Virus control program > c:\viruschk.not
  42.   lvirhash c:\viruschk.not
  43.   if errorlevel = 2 goto Fout
  44.   goto Welok
  45. :Fout
  46.   if exist c:\viruschk.not del c:\viruschk.not
  47.   if exist c:\viruschk.ctl del c:\viruschk.ctl
  48.   if exist c:\viruschk.tmp del c:\viruschk.tmp
  49.   cls
  50.   be wi 1,2,5,78,bright yellow on blue
  51.   be ro 3,10,"Your PC cannot be controlled for viruses !!!",bright yellow
  52.   goto Eeinde
  53. :Geen
  54.   if exist c:\viruschk.tmp del c:\viruschk.tmp
  55. rem cls
  56. rem be wi 1,2,5,78,bright yellow on blue
  57. rem be ro 3,10,"Your PC has already been checked for viruses today.",bright yellow
  58.   goto Neinde
  59. :Welok
  60.   call lvirnxt
  61. :Neinde
  62.   if exist c:\virus.bad  del c:\virus.bad      > nul
  63. :Eeinde
  64.   cd \
  65.   c:
  66.   if exist c:\viruschk.lst del c:\viruschk.lst > nul
  67.   if exist c:\viruschk.tmp del c:\viruschk.tmp > nul
  68.   if exist c:\viruschk.not del c:\viruschk.not > nul
  69.   be ro 24,0
  70.   rem
  71.   rem  Finished.
  72.   rem
  73. :Further
  74.   cls
  75. :Finish
  76.