Nik777
Joined: 21 Jul 2006 |
Posts: 0 |
|
|
 |
Posted: Wed Jul 26, 2006 12:23 pm |
|
 |
 |
 |
 |
Hi,
I posted this question in the FAQ thread, but I'm not sure if anyone reads that anymore.
I'm not looking for on-demand scanning as such - I just want a removable media (CD, UBSdisk, floppy, etc) scanned when the media is inserted (mounted).
Does anyone know of a way to do this with the current system?
All comments and suggestions welcome!
Cheers!
Nik.
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Wed Jul 26, 2006 1:05 pm |
|
 |
 |
 |
 |
I did read your post, there is no way of doing that with current system. we may include it in version 1.1
|
|
Nik777
Joined: 21 Jul 2006 |
Posts: 0 |
|
|
 |
Posted: Thu Jul 27, 2006 1:47 am |
|
 |
 |
 |
 |
Hi Alch,
Thanks for your response.
Do you know of any code out there I could look at that detects new disk mounts in WIndows? I would happily build a small service that does this and just calls ClamWin when needed.
Cheers!
Nik.
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Thu Jul 27, 2006 11:32 am |
|
 |
 |
 |
 |
take a look here for a user-mode code:
https://www.codeproject.com/shell/shchangenotifyregister.asp
|
|
Nik777
Joined: 21 Jul 2006 |
Posts: 0 |
|
|
 |
Posted: Fri Jul 28, 2006 11:04 am |
|
 |
 |
 |
 |
Awesome - thanks!
I've found some other code for determining if a disk is removable or not, so hopefully I can come up with something quite quickly.
On a different, but related topic: is there a reason why there is no service to run ClamWin? It seems that the scheduled scans don't always take place if the machine is logged out. I was considering writing code to run ClamWin as a service. Is there something I should know before attempting this?
Cheers!
Nik
|
|
alch
Site Admin
Joined: 27 Nov 2005 |
Posts: 0 |
|
|
 |
Posted: Fri Jul 28, 2006 11:15 am |
|
 |
 |
 |
 |
we have a service for version 1 and the use Windows Task Scheduler for all tasks so it would run user-less. You can check the clamwind-prototype code in the svn.
|
|
tommyrot
Joined: 11 Dec 2006 |
Posts: 0 |
|
|
 |
Posted: Mon Dec 11, 2006 11:33 pm |
|
 |
 |
 |
 |
Just curious about whether you had any luck with this one? I'm interested in doing exactly the same thing and thought I'd see if you'd managed to create a service that'll do it?
|
|