I have created a windows service which monitors the activities of files on the server. This windows service is using a filesystemwatcher.
Every time there is an activity, i.e. when a file is moved or created, etc., then the system sends an email.
All works fine.
Imagine something will have to get installed on the server and the user forgot to turn off this windows service. Then as a result, a lot of emails will get sent.
This is what I am trying to avoid (Sending un-necessary emails).
Ideally, the user will turn this windows service off but what if he doesn't? certainly we do not what the system to send so many emails as the result of something being installed which can cause alot of files movements and creations, etc...
Well, if you were stupid enough to set the folder to C:\ and then allow it to watch subfolders for "*.*" as well, you deserve what you get.
How about this... write the service to be more selective about what it's watching for. I know, this might be a huge mental leap for you, but sometimes, programming requires, ummm...., programming.
"Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "...the staggering layers of obscenity in your statement make it a work of art on so many levels." - Jason Jystad, 10/26/2001
That will not happen as this system will be used for files which are not supposed to be changed.
I think what you mean is
That should not happen as this system will be used for files which are not supposed to be changed.
Anyway, back to your original problem. AFAIK an install is the same as copying files (at least to a file watcher), so how about seeing how many changes there are in say 30 seconds and send a single email out listing them? Not a perfect solution but maybe a viable work around?
I am doing project on parsing a html content or content in a web page,to display any error in web page(i e to find out grammatical mistakes e.g meaning of word or syntax mistake etc)
which has been designed using html.
How to create setup for C# Windows Application exe. I have tried uisng the Publish option in the application. The problem is with database path. I have put the database(.mdb) file in a separate folder called database. So in the ConnectionString I have given the database path as @"Provider=Microsoft.Jet.OLEDB.4.0; Data Source =" + Application.StartupPath + @"\Database\dbCIMS.mdb;"
How do I include this database in the Setup using the Publish wizard. When I run the setup it was giving Invalid database path error.
Thanks in advance
I have a textbox in which i want to implement wild card search. Like if i enter one char 'A', all the names starting with 'A' in database for that table should be listed. If i enter two chars, correspondingly data should be listed. Can anyone please tell me the solution? Code is in C#