473,395 Members | 1,624 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,395 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 1785
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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...
0
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,...
0
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...
0
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...
0
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...

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.