home *** CD-ROM | disk | FTP | other *** search
- echo off
- rem MAKESURE.BAT
- rem
- echo A simple command.com virus warning by Timo Salmi 23-Oct-88
- rem (See CHKSUM.ARC by Bob Taylor for a much better idea.)
- rem
- rem First copy a certainly clean command.com to shadow.com
- rem Then you need a file comparison program (here fc.exe)
- rem The logic should be evident from below. D: is a ramdisk.
- rem
- rem Another simple trick of viral protection is always using
- rem a copy of a clean command.com e.g. as follows
- rem copy a:\command.com d:\command.com
- rem set comspec=d:\command.com
-
- rem Comment 14-Jan-90: This kind of protection is quite feeble. My best
- rem advice would be to check all software prior using it. There are some
- rem very good virus scanners for this purpose, such as McAfee Associates
- rem shareware scan.exe program.
-
- echo on
- copy a:\command.com d:\
- copy a:\shadow.com d:\
- fc /b d:command.com d:shadow.com
- del d:\command.com
- del d:\shadow.com
-