Documente Academic
Documente Profesional
Documente Cultură
To use these batch files, simply put them in a path and change
to a subdirectory which contains compressed files to be checked.
ScanAll.bat first checks the directory for any and all compressed
files by looking at the files' extensions. It then passes each file to
ScanArc. ScanArc creates a working subdirectory then uncompresses any
EXE, COM, or OVL it finds. Then ScanArc calls SCAN.EXE to scan for
viruses. If a virus is found, ScanArc will rename the original
compressed file, giving it an extension of "BAD". It then logs the
activity in a log file called ScanArc.log and proceeds to the next file.
ScanArc will also update the log when no viruses are found or when
SCAN.EXE terminates abnormally.
The compressed file must be the first argument to ScanArc.bat and the
decompressor must be the second. You can rearrange the dummy parameters
in ScanArc.bat if you don't like the precedence of the arguments.
CAVEATS:
ScanAll and ScanArc will not check for compressed files inside of
compressed files, nor will they make note of such. Also, LHA will give a
benign error message when it can't find any of the target files to
extract. This causes no harm, but I couldn't find a way to shut it off.
Enjoy
Jerry Cain
Tucson, Az