rmuch / ClamAV.Managed

ClamAV bindings for the .NET Framework, Mono and PowerShell. ClamAV.Managed is a library written in C# for the .NET Framework and Mono, providing managed bindings for the libclamav interface. It includes ClamAV.Managed.PowerShell, a set of PowerShell cmdlets for ClamAV scanning. It comes with sample code for building a GUI virus scanner application.
GNU General Public License v2.0
20 stars 8 forks source link

How to start ClamAV automatically #5

Closed tdeb-ari closed 8 years ago

tdeb-ari commented 8 years ago

I want to write a scheduler for this code. Could you please guide me

rmuch commented 8 years ago

How you decide to schedule scans is entirely your choice - the library simply provides functions for you to initialize the ClamAV engine and scan a file or directory for viruses from within your own application.

If you're developing on Windows, the simplest way would be to use a scheduled task to invoke your scanning tool; on a Unix-like platform, you could use a cron job.

If you're writing a background service, one of many ways is to use a System.Threading.Timer as explained here.

tanmoydeb07 commented 8 years ago

Cool...Thanks for your input...