Draft for Information Only
ContentMS DOS Command: MSAV.EXE
MS DOS Command: MSAV.EXEReference from Microsoft MS-DOS cmd help DescriptionScans your computer for known viruses. SyntaxMSAV [drive:] [/S | /C] [/R] [/A | /L] [/N] [/P] [/F] [/VIDEO]
Parameters
Switches
RemarksCHKLIST.MS filesMicrosoft Anti-Virus creates a CHKLIST.MS file in each directory you scan for viruses. The first time you scan a directory, Microsoft Anti-Virus records in the CHKLIST.MS file checksums for each program. During subsequent scans, it compares new checksums with the originals to determine if program files have changed. A difference in checksum values indicates a possible virus infection. Real symptoms versus false alarmsDamaged programs, some memory-resident programs, and conflicts among device drivers can cause your computer to act as if it were infected by a virus when it is not. If you suspect your computer is infected, consider the possible causes for the symptoms you observe. Instead of a computer virus, a hardware or software problem is likely to be producing errors. Check All Files optionWhen the Check All Files option is selected, AnitVirus for MS-DOS checks only files with the following extensions: .386, .APP, .BIN, .CMD, .DOM, .DLL, .DRV, .EXE, .FON, .ICO, .OV*, .PGM, .PIF, .PRG, .SYS. MSAV.INI and the MSDOSDATA environment variableWhen you start Anti-Virus for MS-DOS, it uses an initialization file named MSAV.INI to configure the program. To determine the location of the MSAV.INI file, Anti-Virus for MS-DOS first searches for the MSDOSDATA environment variable, which specifies the path to the initialization file. If this environment variable is not defined, the program searches for the MSAV.INI file in the directory from which you started Anti-Virus for MS-DOS. If the program does not find the file, the program creates it using default values and places it in the directory. The MSDOSDATA environment variable is useful if you share the MSAV.EXE file with others, but use your own configuration for Anti-Virus for MS-DOS. For example, suppose the MSAV.EXE file is located in the root directory on drive P, a read-execute-only network server, and you want Anti-Virus for MS-DOS to use your own configuration when it starts. To specify that it use the MSAV.INI file located in the DOS directory on your drive C instead of the initialization file located on network drive P, add the following line to your AUTOEXEC.BAT file: set msdosdata=c:\dos To start Anti-Virus for MS-DOS, type the following at the command prompt: p:\msav Changes you make to the configuration of Anti-Virus for MS-DOS are saved in the MSAV.INI file located in the DOS directory on drive C. Using the /N switchIf you specify the /N switch, MSAV displays the contents of an MSAV.TXT file, if it exists and it is located in the directory that contains the MSAV.EXE file. MSAV then scans the current drive or the drive you specify. MSAV does not use the graphical interface. If MSAV detects a virus, it returns exit code 86 instead of displaying a message on your screen. ExamplesTo 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 ©sideway ID: 110700225 Last Updated: 7/29/2011 Revision: 0 Latest Updated Links
![]() ![]() ![]() ![]() ![]() |
![]() Home 5 Business Management HBR 3 Information Recreation Hobbies 8 Culture Chinese 1097 English 339 Travel 18 Reference 79 Computer Hardware 254 Software Application 213 Digitization 37 Latex 52 Manim 205 KB 1 Numeric 19 Programming Web 289 Unicode 504 HTML 66 CSS 65 SVG 46 ASP.NET 270 OS 431 DeskTop 7 Python 72 Knowledge Mathematics Formulas 8 Set 1 Logic 1 Algebra 84 Number Theory 206 Trigonometry 31 Geometry 34 Calculus 67 Engineering Tables 8 Mechanical Rigid Bodies Statics 92 Dynamics 37 Fluid 5 Control Acoustics 19 Natural Sciences Matter 1 Electric 27 Biology 1 |
Copyright © 2000-2025 Sideway . All rights reserved Disclaimers last modified on 06 September 2019