One way to get started monitoring files is the FileWatcher:
watchfolder.Not ifyFilter = IO.NotifyFilter s.DirectoryName
watchfolder.Not ifyFilter = watchfolder.Not ifyFilter Or _
IO.NotifyFilter s.FileName
watchfolder.Not ifyFilter = watchfolder.Not ifyFilter Or _
IO.NotifyFilter s.Attributes
watchfolder.Not ifyFilter = watchfolder.Not ifyFilter Or _
IO.NotifyFilter s.LastAccess
' add the handler to each event
AddHandler watchfolder.Cha nged, AddressOf logchange
AddHandler watchfolder.Cre ated, AddressOf logchange
AddHandler watchfolder.Del eted, AddressOf logchange
where logchange displays the change information. Problem is that this line
for example:
AddHandler watchfolder.Cha nged, AddressOf logchange
watchfolder only has these attributes:
- changed
- created
- deleted
- error
- renamed
Meaning the IO.NotifyFilter s.LastAccess will never trigger. If some one
opens the file, they are accessing it but doing none of the above five
listed events. Is there a way to get a trigger on file access even if the
user is only reading? In other words, a file open.
Brett
"Brett" <no@spam.net> wrote in message
news:uw******** ******@TK2MSFTN GP14.phx.gbl...
I'd like to create a small client app that sits on a user's computer and
monitors their FTP activity to one certain server. The client app will
update a server app that then distributes this information to all client
apps. This means if 5 people are using the client app and are accessing
the server via FTP, they will see which files are being accessed by others
that are also using FTP.
Consider each client will be using their own FTP program but I will know
ahead of time what it is. Any bird's eye view suggestions on how I would
go about doing this?
Thanks,
Brett