K
Klaus Gollin
Hi,
I am using FileSystemWatcher like this:
fsw = New IO.FileSystemWatcher(strPath, strFilename)
fsw.NotifyFilter = NotifyFilters.Size or NotifyFilters.LastWrite
fsw.EnableRaisingEvents = True
This raises two events when saving file.
Saving changes with notepad with or _without_ changing in size also raises
two times.
Using
fsw.NotifyFilter = NotifyFilters.Size
doesn't raise the change event, wenn saving, but not changing size.
Is there a way to find out, whether size has changed and/or date/time has
changed?
Thanks in advance
Klaus
I am using FileSystemWatcher like this:
fsw = New IO.FileSystemWatcher(strPath, strFilename)
fsw.NotifyFilter = NotifyFilters.Size or NotifyFilters.LastWrite
fsw.EnableRaisingEvents = True
This raises two events when saving file.
Saving changes with notepad with or _without_ changing in size also raises
two times.
Using
fsw.NotifyFilter = NotifyFilters.Size
doesn't raise the change event, wenn saving, but not changing size.
Is there a way to find out, whether size has changed and/or date/time has
changed?
Thanks in advance
Klaus