473,625 Members | 3,134 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Which process accessed the file ?

Hi everybody.

I'm writing a tool that will let me monitor a specific file for updates.
It's quite easy, using FileSystemWatch er, to get an event when ever the file
is being accessed, but how do I find which process is responsible for the
event ?

TIA ...

Morten
Jul 17 '05 #1
0 2226

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

Similar topics

2
1546
by: Timothy V | last post by:
Hi, I'm developing an ASP.NET web app and i'm retrieving some data from xml files. My question is, if an xml file is going to be accessed a page is loaded, should i: 1. use an in-memory XmlDocument (created each time the page is accessed); or 2. use a forward-only XmlTextReader object (created each time the pages is accessed).
1
1680
by: Henry Chen | last post by:
We have a web server that runs on Windows 2000/IIS 5. We have multiple site of web application on the web server. Each site has it own assembly versions of ASP.Net application. They are all developed with ASP.Net 1.0. When we test a site of the application, it sometimes pops up stating that a file is locked another process and can not be accessed. I try to stop the ASPNET_WP process via task manager on the web server, the service will start...
8
5143
by: utagger | last post by:
Hi All, We have a gallery component that allows us to upload images. An Edit Image Entry user control allows the user to update an image, by replacing the current one. Oddly, after replacing an image, if the user tries to replace again within a few seconds - he gets the following error message: The process cannot access the file "...X.gif" because it is being used
1
1286
by: Brett | last post by:
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...
4
9609
by: Paddy | last post by:
We have a recurring problem where a (long-running) service throws an exception while trying to access a file. The problem is that this is very rare (happens once every week and without warning) but does happen time to time. We are trying ways to find which other process is holding on to the file or even if any other thread from our process is holding on to the file at the specific time that the problem occurs. So, I am trying to...
1
7534
by: me | last post by:
Hi, Im having a few issues with finding exactly which program may be accessing a certain file. Lets say I need to replace a DLL with a newer version, but I need to make sure its not being accessed. Finding out if its in use isnt a problem, but I need to find out exactly which process is using it so I can ask the user if they would like to end that process to replace the file or not.
4
6032
by: Shamresh | last post by:
Hi to all, I have a file that is locked and I get the message "file is locked by another user or process". How can I show which process has it locked (i.e. need the pid and the process name and path). Sham.
5
2336
by: looi_sookchan | last post by:
Hi, I am new here.. I face problem when i try communicate two .exe together.. these two .exe i name it by App A and App B.. i try to call App A's function from App B's function.. i had create a App B's pointer at App A..name by BPointerAtA.. and i try to new this pointer ( BPointerAtA = new CAppB;).. when i compile..i have a compile error, which is.. --------------------Configuration: A - Win32 Debug-------------------- Linking...
1
1738
by: =?Utf-8?B?RFdhdHNvbkNyeXBLZXk=?= | last post by:
I need to be able to monitor a file and identify which processes have accessed them. Kind of like Windows Filemon does. The FileSystemWatcher doesn't seem to provide this information, and I can't get this information from System.GetProcesses. Can anyone tell me how to do this? Thanks
0
8259
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
8696
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...
1
8358
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8502
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
7188
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
4090
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2621
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
1
1805
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1504
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.