
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. %f is the filesystem (NTFS, FAT, …) of the inserted drive.%s is the volume serial number of the inserted drive.%v is the volume name of the inserted drive.I added 3 placeholders with new versions: This debug output can be viewed with DebugView. When this flag is present, USBVirusScan will write debug output when drives are inserted. 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. 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.
