
Kaspersky Anti-Virus Scanner
20
[/virlist=filename]
– creates a file with the defined name that will contain the list
of viruses currently detectable by Kaspersky AV Scanner.
[filename and foldername]
– sets Kaspersky AV Scanner to scan for viruses in
those files or folders. If a file name or a folder name have spaces, they must
be enclosed in quotation marks. The
*
or
?
symbols cannot be used in file
names, i. e., the
*.exe
or
av?32.exe
names cannot be written.
If a folder or a file name with a list of files (
/@=file_list.lst
) is indicated
in a command line, scanning starts automatically without the
/S
key.
[/EL]
excludes from the check the objects indicated in the
file_name
file of the
[/@[!]=filename]
parameter.
[/EF]
– sets Kaspersky AV Scanner to ignore those files defined in the command
line. The switch /EF can be also used in a file defined by the switch
/@=filename
(see above). In this case the object (file or folder) listed
together with the switch
/EF
will be ignored by Kaspersky AV Scanner. If the
name of the listed file contains spaces, the switch
/EF
must precede the
filename (the switch can follow the filename, but in this case the filename
must be enclosed with quotation marks). If the name of the listed file doesn’t
contain spaces, the switch
/EF
can be positioned anywhere in the line.
By using combinations of the switches
/EF
,
/EL
,
/@
and the list of files
and folders in the command line you can define various locations to be
checked.
Let's consider some examples of switch applications:
Example 1. Starting the program preset to check for viruses in files
within the
My documents
folder.
С
:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus
for Workstation\Avp32.exe" /S "C:\My documents"
Example 2. Starting the program preset to create a list of detectable
viruses in the file
E:\virlist.txt
and to close the main window once the
scanning operation is complete.
С
:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus
for Workstation\Avp32.exe" /virlist=E:\virlist.txt /q
Example 3. Starting the program preset to check for viruses right after it
is started, if Kaspersky AV Scanner has not scanned for viruses that
day or if it has but the scanning operation was aborted or viruses were
detected. The program is also set to close the main window once the
scanning operation is complete.
С
:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus
for Workstation\Avp32.exe" /s/d/q