System File Watcher and networked drives

  • Thread starter Thread starter Lilith
  • Start date Start date
L

Lilith

Would I be correct in assuming that the system file watcher is only
valid for local drives and won't work for networked file system?
 
Lilith said:
Would I be correct in assuming that the system file watcher is only
valid for local drives and won't work for networked file system?

That would be an incorrect assumption. Per the Remarks section for the
FileSystemWatcher class:

Use FileSystemWatcher to watch for changes in a specified directory. You
can watch for changes in files and subdirectories of the specified
directory. The component can watch files on a local computer, a network
drive, or a remote computer.
 
That would be an incorrect assumption. Per the Remarks section for the
FileSystemWatcher class:

Use FileSystemWatcher to watch for changes in a specified directory. You
can watch for changes in files and subdirectories of the specified
directory. The component can watch files on a local computer, a network
drive, or a remote computer.

Would the type of network matter, MS vs. NetWare?

I'm working on a program to monitor the content of a series of log
files that are created periodically with sequential extension numbers.
The files exist on a NetWare drive.

The program doesn't appear to work, whether I'm using a UNC path or a
mapped drive. If I point the program to a local drive and copy the
files from the NetWare drive into it, the program does detect the
"creation" and changes of these files.
 
It needs to be an NTFS share on an NT4 or later system. NT 3.51 and earlier
did not support the File System Watcher across a network. Also, Samba
doesn't support it either.

Mike Ober.
 
Back
Top