472,791 Members | 978 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,791 software developers and data experts.

Getting the user name of the person who has a file open

jnc
I have quite a weird problem whereby I need to obtain the username of the
person who has a file open and it need to work over the nework.

To explain a bit more.....I have a file system watcher which is watching a
file over the network. The file can be opened by multiple users from mutiple
computers within the same domain.

Currently the file system watcher object (sits on a server watching out on
the network) will tell me when the file is saved, opened etc, but what I then
need to do is fire a bit of code which will tell me which user is interacting
with it).

The file system watcher is running under a domain administrator account.

Constraints I face are that I cant put any software can run on the client
machines, only on the server.

Any suggestions would be gratefully accepted.

Cheers......Jim

Jul 21 '05 #1
1 1738
See freeware:http://www.sysinternals.com/ntw2k/freeware/handle.shtml
Excerpt:
Introduction
Ever wondered which program has a particular file or directoryopen? Now you can find out. Handle is a utility that displaysinformation about open handles for any process in the system.You can use it to see the programs that have a file open, or tosee the object types and names of all the handles of a program.

You can also get a GUI-based version of this program, ProcessExplorer, here at Sysinternals.
(KenK)
I have quite a weird problem whereby I need to obtain theusername of the
person who has a file open and it need to work over thenework.

To explain a bit more.....I have a file system watcher which iswatching a
file over the network. The file can be opened by multipleusers from mutiple
computers within the same domain.

Currently the file system watcher object (sits on a serverwatching out on
the network) will tell me when the file is saved, opened etc,but what I then
need to do is fire a bit of code which will tell me which useris interacting
with it).

The file system watcher is running under a domain administratoraccount.

Constraints I face are that I cant put any software can run onthe client
machines, only on the server.

Any suggestions would be gratefully accepted.

Cheers......Jim

User submitted from AEWNET (http://www.aewnet.com/)
Jul 21 '05 #2

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

Similar topics

10
by: darrel | last post by:
I have this structure: mypage.aspx (class = mypage) myusercontro.ascx On the mypage.aspx I can declare a variable: animal = "monkey" I can read this from the UC by simply doing this:...
1
by: jnc | last post by:
I have quite a weird problem whereby I need to obtain the username of the person who has a file open and it need to work over the nework. To explain a bit more.....I have a file system watcher...
0
by: ruju00 | last post by:
I am getting an error in Login() method of the following class FtpConnection public class FtpConnection { public class FtpException : Exception { public FtpException(string message) :...
1
by: iwdu15 | last post by:
hi, how can i get the icon associated with a certain file type? thanks -- -iwdu15
17
by: teddysnips | last post by:
One of my clients has asked me to make a change to one of their Access applications. The application is a Front End/Back End standard app. I didn't develop it, but looking at it tells me that...
41
by: Jim | last post by:
Hi guys, I have an object which represents an "item" in a CMS "component" where an "item" in the most basic form just a field, and a "component" is effectively a table. "item" objects can be...
1
maxamis4
by: maxamis4 | last post by:
Hello folks, Here is the backgroup. I am creating an agent that can find a user in LDAP and return the last logon date. Now i am not sure if with active directory you can user the...
0
by: TG | last post by:
Hi! Once again I have hit a brick wall here. I have a combobox in which the user types the server name and then clicks on button 'CONNECT' to populate the next combobox which contains all the...
7
vikas251074
by: vikas251074 | last post by:
I am getting error above in following code since few days giving tension day and night. How can I solve this? I am facing since Oct.25. in line no. 362 After doing a lot of homework, I am...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 2 August 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: erikbower65 | last post by:
Using CodiumAI's pr-agent is simple and powerful. Follow these steps: 1. Install CodiumAI CLI: Ensure Node.js is installed, then run 'npm install -g codiumai' in the terminal. 2. Connect to...
0
linyimin
by: linyimin | last post by:
Spring Startup Analyzer generates an interactive Spring application startup report that lets you understand what contributes to the application startup time and helps to optimize it. Support for...
0
by: kcodez | last post by:
As a H5 game development enthusiast, I recently wrote a very interesting little game - Toy Claw ((http://claw.kjeek.com/))。Here I will summarize and share the development experience here, and hope it...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Sept 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Taofi | last post by:
I try to insert a new record but the error message says the number of query names and destination fields are not the same This are my field names ID, Budgeted, Actual, Status and Differences ...
0
by: Rina0 | last post by:
I am looking for a Python code to find the longest common subsequence of two strings. I found this blog post that describes the length of longest common subsequence problem and provides a solution in...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
0
by: Mushico | last post by:
How to calculate date of retirement from date of birth

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.