Automatically Scan for Viruses When Plugging in a USB Flash
Secure your devices with award-winning cybersecurity technology.
Browse the web securely for up to 3 devices across Windows, Mac, iOS or Android systems.
Best security tool for intense browsing activity.
Keep secure with groundbreaking AI detection and prevention technology.
Prevent data breaches and malware infections with user-friendly controls.
AVG (Free) Antivirus 2013
“C:\Program Files\AVG\AVG2013\avgscanx.exe” /CLEAN /SCAN=%%c:
Look here for more AVG commandline scan parameters.
Kaspersky Anti-Virus 2013
“C:\Program Files\Kaspersky Lab\Kaspersky Anti-Virus 2013\avp.com” scan %%c:
Kaspersky Internet Security 2013
“C:\Program Files\Kaspersky Lab\Kaspersky Internet Security 2013\avp.com” scan %%c:
Here are the commands for Kaspersky 2010 which are still the same for 2013.
Norton Anti-Virus
“C:\Program Files\Norton Antivirus\Engine\20.1.0.24\navw32.exe” %%c:
Norton Internet Security
“C:\Program Files\Norton Internet Security\Engine\20.1.0.24\Navw32.exe” %%c:
Find more scanning commands on the Symantec website.
ESET NOD32 Antivirus
“C:\Program Files\ESET\ESET NOD32 Antivirus\ecls.exe” /aind /action=clean %%c:
ESET Smart Security
“C:\Program Files\ESET\ESET Smart Security\ecls.exe” /aind /action=clean %%c:
Find more commands on the ESET website.
ClamWin
“C:\Program Files\ClamWin\bin\clamscan.exe” –database=C:\ProgramData\.clamwin\db –show-progress –recursive=yes %%c:
ClamWin needs the location of the virus definition database in the command line, the default is C:\ProgramData\.clamwin\db in Windows Vista/7/8 if you installed it. To check the current location of the virus definition database, run the ClamWin program and go to Tools -> Preferences -> File Locations.
Microsoft Security Essentials
“C:\Program Files\Microsoft Security Client\MpCmdRun.exe” -Scan -ScanType 3 -File %%c:
For a full list of MpCmdRun commands, download this text file.
Windows Defender (Windows 8)
“C:\Program Files\Windows Defender\MpCmdRun.exe” -Scan -ScanType 3 -File %%c:
BitDefender
Appears to be supported by the command bdc.exe but this program never got installed on any 2013 product we tested.
Avira Free Antivirus
Download this configuration file and place it in \Program Files\Avira\, don’t try to put it in the AntiVir Desktop folder. Then place the following command into the USBVirusScan batch file:
“C:\Program Files\Avira\AntiVir Desktop\avscan.exe” /CFG=”C:\Program Files\Avira\USBscan.txt” /PATH=”%%c:”
There is also a more traditional command line scanner available from the Avira website.
McAfee VirusScan
Not Supported because none of the Home products have the command line feature built in.
Avast! Antivirus Pro / Internet Security
“C:\Program Files\AVAST Software\Avast\ashCmd.exe” %%c: /P=[321]
Avast! Free Edition
The free edition does not support command line scanning in the same way as the Internet Security or Pro versions although it has a quick scanner tool with no arguments apart from a drive letter, this will simply popup a message if it detects anything suspicious during the scan.
“C:\Program Files\AVAST Software\Avast\ashquick.exe” %%c:
There are number of other command line arguments to use in USBVirusScan such as hiding the program from the tray (-i), disabling the exit button in the tray (-e) and scanning all removable drives when the program starts (-s) etc. Double click the executable or right click on the tray icon -> About for the full list of supported arguments.
C:\Program Files\Microsoft Security Client\MpCmdRun.exe” -Scan -ScanType 3 -File %%c:
if i insert a usb drive can be letter d e f g h … ?
how you can understand the letter to must use ?
and why you use %% ?
%%c:
Great program idea, but I have to ask, why is it that Antivirus suites don’t do this automatically. It just seems like common senses, you shouldn’t have to use another program and then program it to use your antivirus. This is beyond stupid in my thinking about how antivirus utilities work, they should be protecting flash drives automatically.
Its good to find the virus scan in pc system
Thank u
praveenkumar
will this auto scan utility work with Bitdefender free edition? if so, how should do that? please send me the procedure..
is it possible to revert back after changes made (automatic scan)? can you show how.
How to do this usb auto scan for comodo internet security premium 2013?
Although Comodo do have what is believed to be a command line scanner called Cavscan.exe in the Comodo folder, it seems they haven’t bothered to tell anyone how to use it.
The output from Cavscan is always blank whatever arguments you put into it. Comodo’s forums have loads of people asking how to utilize this tool, no-one ever seems to come back with useful answers.
Very useful program, indeed.
As I use Norton AV, one problem is that the path of NAVW32.exe changes when updated automatically.
So I wrote following bat file which finds the path and kick USBVirusScan.
Content of USBChkStart.bat :
—————– snip ——————
setlocal
reg query “HKLM\software\microsoft\windows\currentversion\app paths\navw32.exe” | find “:\” >–AA–.txt
for /f “tokens=3,4,5,6” %%p in (–AA–.txt) do set nortonpath=%%p %%q %%r %%s
start /b USBVirusScan.exe %nortonpath% %%c: /S+ /B+
endlocal
——————snip ——————
Another bat file (USBChkStop.bat) to stop is:
usbvirusscan -q
Place them anywhere you want (desktop for example). Works great.
Tak
Thanks mate appreciate a lot
Thanks raymond
Neat program.. Thanks for the info raymond, I’m gonna introduce this program to all my mates :)