Results 1 to 5 of 5

Thread: Find user id for a locked file.

  1. #1
    lcrawfo
    Guest

    Question Find user id for a locked file.

    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?

  2. #2
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    Use something like Net Watch or Server Manager from the NT/2000 Resource Kits.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  3. #3
    lcrawfo
    Guest

    No can do.

    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

  4. #4
    Black Cat JoshT's Avatar
    Join Date
    Nov 2000
    Location
    WNY, USA
    Posts
    4,032
    It would be NetShareEnum then NetConnectionEnum, but I don't have VB code on how to use them.
    Josh
    Get these: Mozilla Opera OpenBSD
    I have books for sale: "MCSD in a Nutshell" and "VB Distributed Exam Cram" - PM me for details. Will also trade for a decent ATX Pentium 2 MB/CPU/RAM combo.

  5. #5
    lcrawfo
    Guest

    Thanks

    Hey a start is all I needed to get going on it, thanks.

    Lee

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width