![avast command line scanner avast command line scanner](https://www.geeks3d.com/public/jegx/2020q1/avast-cybercapture-scanning-gpushark.jpg)
I used sample code for system tray programming from this Code Project article, and for the rest I generate a new GUID and did some cosmetic changes to the original USBDumper code. You start it with this command: USBVirusScan.exe wscript log.vbs %dĮxample of the content of the log file after inserting the USB drive twice: 17:05:00 Set objTextFile = objFSO.CreateTextFile(strFilename) Set objTextFile = objFSO.OpenTextFile(strFilename, 8 ) Set objFSO = CreateObject("Scripting.FileSystemObject") Here’s a Windows Script example (log.vbs) that will create a log.txt file on the inserted USB drive with the current date & time: Dim objFSODim objTextFile Or when I insert my MP3 player, the script opens the folder with queued-up podcasts.Īnd for all other drives, I start a virus scan. For example, when I insert my USB drive with my TrueCrypt protected data on it, my script automatically launches the TrueCrypt program to mount the drive, I just have to type the pass-phrase.
Avast command line scanner serial number#
The volume name and volume serial number allow me to script different actions for the different USB drives I plug into my system. See function GetVolumeInformation for details. It is not the serial number assigned by the manufacturer. The volume serial number is assigned by the operating system when a hard disk is formatted.
![avast command line scanner avast command line scanner](http://1.bp.blogspot.com/-ClNjRfpcJGA/UF4AFNv4pnI/AAAAAAAAAF8/KYVbwoIgZF8/s1600/largeImg.png)
The -q switch will stop a running instance of USBVirusScan.Ī new flag, -d, adds debugging support to USBVirusScan. Option -e will disable the Exit command in the pop-up menu. This only works with Console applications, not with Windows applications. You can also hide the command line console with option -c. If you want to hide this system tray icon, start USBVirusScan with option -i, like this: USBVirusScan uses a system tray icon and balloons to announce the insertion of a USB drive. %d (or %c for legacy reasons) is a placeholder for the drive-letter of the inserted USB drive.
Avast command line scanner full#
I use it to start a full virus scan on the inserted USB drive, hence the name.įor example, to start a cmd.exe on each USB drive you insert, you start USBVirusScan like this: USBVirusScan will launch any program you provide as a command line parameter each time a USB stick is inserted.