473,322 Members | 1,431 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 1779
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...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.