Does it have to be a batch file? Python could do it, fairly easily.
From: clamav-users <clamav-users-bounces@lists.clamav.net> on behalf of Jeff <jeffshead@gmail.com>
Reply-To: "Jeffshead@gmail.com" <jeffshead@gmail.com>, ClamAV users ML <clamav-users@lists.clamav.net>
Date: Monday, September 17, 2018 at 9:44 PM
To: "clamav-users@lists.clamav.net" <clamav-users@lists.clamav.net>
Subject: [clamav-users] Batch file for Windows.
Guys and Gals,
I’ve been unsuccessful in creating a working batch file. I’ve Googled and searched the ClamAV list but only found one incomplete sample…
Can someone share a Windows batch file or PowerShell script that does the following:
When ran, recursively scans a particular directory, moves any infected files to another directory and emails an alert if a virus is detected. The email alert should contain info about the infected file(s) including the path.
Keeping fingers crossed :-)
Thanks,
Jeff
--