PDA

Click to See Complete Forum and Search --> : Find user id for a locked file.


lcrawfo
May 8th, 2001, 06:56 PM
I'm looking for a method of finding the network user id of a person who has a file locked.

Finding if the file is locked is simple enough. But I can't seem to tell who has it locked.

The files are on a Windows NT server and the workstations for the most part are Win98/2000.

Any ideas?:confused:

JoshT
May 9th, 2001, 02:29 PM
Use something like Net Watch or Server Manager from the NT/2000 Resource Kits.

lcrawfo
May 9th, 2001, 06:18 PM
While that would be easy to do. I need to incorperate it into a utility I'm writing.

There must be an api call or something to tell what user has a file locked or open...

Lee

JoshT
May 10th, 2001, 05:59 AM
It would be NetShareEnum then NetConnectionEnum, but I don't have VB code on how to use them.

lcrawfo
May 10th, 2001, 11:05 AM
Hey a start is all I needed to get going on it, thanks.

Lee