473,698 Members | 2,185 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to find out which file is being accessed via FTP?

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
Nov 21 '05 #1
1 1287
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

Nov 21 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
2130
by: Leo | last post by:
Hi I had asekd previously a question qith regards to running a DLL file from ASP. It was not running for me. Bo error returned, nothing, Just an empty string (when it should have not been empty). I created a .vbs file and put it in the same directory as the .asp file on the web. The same exact code. It runs fine. Soon as I call the asp file, it still does nothing. Would anyone have an idea as to why the .asp has no ability to run this...
35
2669
by: munish.nr | last post by:
Hi All, I want to know the size of file (txt,img or any other file). i knoe only file name. how i can acheive this. does anybody is having idea about that. plz help. rgrds, Munish Nayyar
0
2437
by: Sam Fields | last post by:
I have found very little regarding the error "Unable to find an entry point named EnumerateSecurityPackagesW in DLL security.dll. ". I have an ASP.NET Web Service being accessed via SSL. I found a website indicating that if any of your .dll names are security.dll, it could cause this issue. I happened to have named the service that -- so I renamed the service's dll, and it still didn't work. I decided to start from scratch, and built...
3
2484
by: Jeff Robichaud | last post by:
Hello, Since it is possible to put application settings in a file other than web.config, I was wondering what is the best practice in doing so vs. putting these settings directly in web.config. My point is that when I deploy an application, I want to overwrite web.config all the time, because the contents of this file has a direct impact on the application's overall behavior. For example, the execution timeout for my app is 60 seconds,...
18
1854
by: Bruce Lawrence | last post by:
We use Access 97. We are in the process of migrating to 2003 along with SQL in most cases. We have a production database that contains a pretty important table and we would like to know which other databases on our network link to this table. The reason is because we plan to add/remove certain fields in this table when we put it in SQL but we would like to know ahead of time which databases will be affected by this. I seem to...
16
9522
by: Otie | last post by:
Hi, Is there a way for VB5 to determine exactly where on a hard drive a .exe file is stored upon the .exe file's first copying to the hard drive? What I need to know is the exact hard drive sector, cluster, partition, etc. information so I can use it later on to determine if the file was ever deleted and restored or moved elsewhere. Thank you.
1
4083
by: mosesdinakaran | last post by:
Hi All, How to find out the last accessed date of a MySql Database. I have around 200 databases in my server some are used and some are not in Use, I want to remove the database that are not in Use. SHOW TABLE STATUAS gives me last updated Date. In my case there are some database which are not updated at all, but
12
4725
by: glennanthonyb | last post by:
Hi The company I work for has finally woken up to data security on our field laptops. I'm writing something in C# that will allow remote deletion of sensitive data and I don't believe File.Delete() will be sufficient. Is there anything in .NET that removes any remanence of the file? If it isn't going to be easy, does anyone know of a component that I can hook into to do the dirty work, free of otherwise?
9
5409
by: tshad | last post by:
I am trying to get access to a file that may still being written because the file is so large (7-10MB). I get an error: The process cannot access the file 'c:\TestDocs\XMLFiles\492172.XML' because it is being used by another process
0
8668
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8598
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9152
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9014
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
8855
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
5857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4612
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3037
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
1995
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.