J
Jet Leung
Hi all,
I had made a program to watching files in my directory. I had used a
instance of FileSystemWatcher to do my work.And I had add some events of the
FileSystemWatcher , for example onChange, onRename and so on.
And I had made this program as a windows service.As I know, if I delete a
file from my directory, this behavior will active this program and do
something what I want to do. But after I install this program as a windows
service and doing some behavior in the directory which I had set as the
property of the instance of FileSystemWatcher, this program will not do my
work for me.How can I solve it?
Acturaly, after I installed this program as the windows service and start
the debug in vs.net 2003 , it won't active the break point where I had set
the break point at the onChanged event. And I had added the handler of this
event.
I had made a program to watching files in my directory. I had used a
instance of FileSystemWatcher to do my work.And I had add some events of the
FileSystemWatcher , for example onChange, onRename and so on.
And I had made this program as a windows service.As I know, if I delete a
file from my directory, this behavior will active this program and do
something what I want to do. But after I install this program as a windows
service and doing some behavior in the directory which I had set as the
property of the instance of FileSystemWatcher, this program will not do my
work for me.How can I solve it?
Acturaly, after I installed this program as the windows service and start
the debug in vs.net 2003 , it won't active the break point where I had set
the break point at the onChanged event. And I had added the handler of this
event.