ClamWin Free Antivirus Forum Index
ClamWin Free Antivirus
Support and Discussion Forums
Reply to topic
Clamwin Batch File for Virus Scan and Email Notification
challjr2


Joined: 02 Sep 2011
Posts: 0
Reply with quote
I have a batch file that scans using task manger and copies the file to a certain location. I would like the batch file to notify me when a virus is found. I am using Microsoft Outlook for email. This is the code I have so far in the batch file. Any help would be greatly appricated. Thanks.

@echo off
"C:\Program Files (x86)\ClamWin\bin\clamscan.exe" --database="C:\Documents and Settings\All Users\.clamwin\db" --recursive C:\ E:\ F:\ --log=\\vm-wfs-01\Shared_Data\Software\Anti-Virus\VirusScanResults.txt
View user's profileSend private message
GuitarBob


Joined: 09 Jul 2006
Posts: 9
Location: USA
Reply with quote
I think when you select email notification in the ClamWin GUI, a detection triggers a Python notification script. I don't know if the script is in the library or in the ClamWincode. If you could find the script, that might help. I don't know if the notification includes all infected detections or just the first one.

Regards,
View user's profileSend private message
challjr2


Joined: 02 Sep 2011
Posts: 0
Reply with quote
GuitarBob wrote:
I think when you select email notification in the ClamWin GUI, a detection triggers a Python notification script. I don't know if the script is in the library or in the ClamWincode. If you could find the script, that might help. I don't know if the notification includes all infected detections or just the first one.

Regards,


Thanks. I will look for that.
View user's profileSend private message
Clamwin Batch File for Virus Scan and Email Notification
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT  
Page 1 of 1  

  
  
 Reply to topic