Process a File Command
|
syntax |
process <file path> <user_agent> |
This function allows a user to process a file on the command line with a specific user agent using all available AV products on the machine. This effectively allows the user to choose which workflow to use when processing their file.
COM API
Calls Metascan COM Process asynchronously.
Process parameters
|
input parameters |
|
|
<file path> |
user entered file path |
|
<user_agent> |
the User Agent corresponding to desired Workflow |
Example
c:\Program Files (x86)\OPSWAT\Metascan 4>omsCmdLineUtil.exe process C:\TestFiles\eicar.com defaultTicket:[ 2772276979 ]Process Details---------------File: [ C:\TestFiles\eicar.com ] MD5: [ 44D88612FEA8A8F36DE82E1278ABB02F ] SHA1: [ 3395856CE81F2B7382DEE72602F798B642F14140 ] SHA256: [ 275A021BBFB6489E54D471899F7DB9D1663FC695EC2FE2A2C4538AABF651FD0F ] File Size: [ 68 bytes ] File Type Category: [ T ] File Type: [ unknown ] File Type Description: [ ASCII text, with no line terminators ][ Dirty ] Avira scan engine [ 1 ms ] | Eicar-Test-Signature[ Dirty ] ESET scan engine [ 2 ms ] | Eicar test file[ Dirty ] Ahnlab scan engine [ 3 ms ] | EICAR_Test_File[ Dirty ] ClamAV scan engine [ 14 ms ] | Eicar-Test-SignatureScan Completion--------------- [ Dirty ] Ticket: [ 2772276979 ] File path: C:\TestFiles\eicar.com Found threats: EICAR_Test_File Scan time: 14 ms [01/25/2016 16:01:44:835]Process Completion------------------ Ticket: [ 2772276979 ] User agent: default Profile: Default Result: [ Blocked ] Blocked reason: [ Dirty ] File processed: C:\TestFiles\eicar.comLimitations
Does not support processing a folder.