Hi Guru on the board
Please pardon me if my question is stupid.
I had successfully created a program to track the activities for folder with using FileSystemWatcher in
VB.net
Whenever a file had been created or remove from the designated FTP server folder. an Email will be generated to my account to notify me.
A fews of mates, would like me to track their file too. I could have used the easier way to plant the exe into that folder as well (we are sharing the same file server)
But i had a idea to use excel to keep track the setting file. hence when i trigger the program. I only need one exe to run at the background to cut down the resource for windows task.
The excel will be designed as
Folder Addressee Email
------ --------- -----
c:\ftpsvr\usera Lawrence
[email protected]
c:\ftpsvr\userb Laura
[email protected]
c:\ftpsvr\userc Laury
[email protected]
so when i start the program. I will inform the filesystemwatcher to start as three different new object.
Dim FSWa as new filesytemwatcher
Dim FSWb as new filesytemwatcher
Dim FSWc as new filesytemwatcher
but that lead to another problem. what if i have another user need to do the similar action again. I will have to go back to the source code to declare another new FSWd to track the new folder? and it gonna be endless loop....
anyone could enlighten me please?
Thanks in advance
Lawrence