help.hlp (Table of Contents; Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
MSAV--Examples
Syntax  Notes
────────────────────────────────────────────────────────────────────────────
 
                               MSAV──Examples
 
To start MSAV using a black and white color scheme, and to specify that MSAV
check all drives except drives A and B, type the following command:
 
    msav /bw /a
 
To write a simple batch program named VIRUS that supports the MSAV exit code
and the /S switch to scan the current drive, you can type the following
commands by using MS-DOS Editor:
 
    echo off
    rem Smith's msav command
    msav /s /n
    if errorlevel 86 goto virus
    if not errorlevel 86 goto none
    :virus
    echo MSAV has detected a virus on your current drive!
    goto exit
    :none
    echo MSAV found no viruses on your current drive.
    goto exit
    :exit
 
                                      ♦