Many download managers and backup programs allow you to scan files with a virus scanner using the command line. This way, you can use the graphical user interface of the Avira software by configuring it with the following parameters (the syntax is not case-sensitive, but the paths have to be inserted in double-quotes):
/CFG="<path to the scan profile file>"
/PATH="<path to the folder or file to be scanned>"
Examples:
"C:\Program Files (x86)\Avira\Antivirus\avscan.exe" /CFG="C:\Program Files (x86)\Avira\Antivirus\scan.avp"
"C:\Program Files (x86)\Avira\Antivirus\avscan.exe" /PATH="%WINDIR%"
"C:\Program Files (x86)\Avira\Antivirus\avscan.exe" /PATH="C:\Downloads\"
"C:\Program Files (x86)\Avira\Antivirus\avscan.exe" /PATH="C:\Downloads\%1"
Note
Avira System Scanner uses the configuration set in Avira product, under the Settings in the lower left-hand corner of your Antivirus window and → PC Protection → System Scanner. So, if you activated the option Scan master boot sectors, they will be scanned every time avscan.exe starts.
Scan selected files
If you do not want to use this option because scanning takes longer, there is a workaround to scan only the selected files.
- Download filescan.avp attached at the end of this article.
- Save the file on your hard disk, then right-click it and select Properties. Activate the option Read-only and click OK.
- Now you have to apply this profile to the /CFG parameter. For example, to use Avira products with WinRAR you have to use the following parameters:
System Scanner name:"C:\Program Files (x86)\Avira\Antivirus\avscan.exe
”
System Scanner parameter:CFG="C:\filescan.avp" /PATH="%f"