home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / MAGAZINE / MISC / CD01SEPT.ZIP / SCANALL.ZIP / SCANALL.DOC < prev    next >
Encoding:
Text File  |  1991-08-01  |  2.3 KB  |  55 lines

  1. Thu  08-01-1991           ScanAll & ScanArc        Jerry Cain
  2.  
  3.         I was in need of a program which would scan for viruses inside
  4. compressed files on my BBS. Since I knew of no such program, I sat down
  5. and wrote ScanAll.bat and its companion, ScanArc.bat. These two batch
  6. files accomplished my goal so elegantly that I thought I'd submit them
  7. to PC Magazine for publication.  As luck would have it, though, I was
  8. going through a back issue of the magazine and discovered that someone
  9. had already submitted such a concept, albeit with a different approach.
  10. Oh, well. That's the story of my life.
  11.  
  12.         To use these batch files, simply put them in a path and change
  13. to a subdirectory which contains compressed files to be checked.
  14.  
  15. Type: ScanAll <enter>
  16.  
  17. then sit back and watch the magic.
  18.  
  19.         ScanAll.bat first checks the directory for any and all compressed
  20. files by looking at the files' extensions. It then passes each file to
  21. ScanArc. ScanArc creates a working subdirectory then uncompresses any
  22. EXE, COM, or OVL it finds. Then ScanArc calls SCAN.EXE to scan for
  23. viruses. If a virus is found, ScanArc will rename the original
  24. compressed file, giving it an extension of "BAD".  It then logs the
  25. activity in a log file called ScanArc.log and proceeds to the next file.
  26. ScanArc will also update the log when no viruses are found or when
  27. SCAN.EXE terminates abnormally.
  28.  
  29.         ScanArc.bat can also be used on a single file by passing it the
  30. name of the file and the name of the decompression program.
  31.  
  32. e.g.:  SCANARC foo.lzh lha <enter>
  33.  
  34. The compressed file must be the first argument to ScanArc.bat and the
  35. decompressor must be the second. You can rearrange the dummy parameters
  36. in ScanArc.bat if you don't like the precedence of the arguments.
  37.  
  38. CAVEATS:
  39.  
  40. ScanAll and ScanArc will not check for compressed files inside of
  41. compressed files, nor will they make note of such. Also, LHA will give a
  42. benign error message when it can't find any of the target files to
  43. extract. This causes no harm, but I couldn't find a way to shut it off.
  44.  
  45.  
  46.  
  47. Please let me know if this program is useful to you by logging onto my
  48. BBS @ 602-881-3769 24 hrs up to 14.4k. Or send net mail via Fido net
  49. address 1:300/8.  This is my only way to travel.
  50.  
  51. Enjoy
  52.  
  53. Jerry Cain
  54. Tucson, Az
  55.