Results 1 to 12 of 12

Thread: who has what open

  1. #1

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492

    who has what open

    In Linux I can determine someone and some file that has been opened over the network. So say I've got this file that I want to delete, but the system keeps telling you it's locked or in use, but who, what is using that file?

    In Linux I can run fuser -u filename. and I could kill the process using kill -pid.

    How can I do this in windows???

    Jon

  2. #2
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    SFU might have those abilities if you're using NT/XP Pro/2K or 2K3.

    If you don't know what SFU is, it's a free UNIX utilities made by Microsoft and it pretty much adds alot of Unix commands into the command prompt. I would like to add that the kill command included in the SFU works ALOT better than anything built into Windows.

  3. #3

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by kasracer
    SFU might have those abilities if you're using NT/XP Pro/2K or 2K3.

    If you don't know what SFU is, it's a free UNIX utilities made by Microsoft and it pretty much adds alot of Unix commands into the command prompt. I would like to add that the kill command included in the SFU works ALOT better than anything built into Windows.
    Hmm./..got a link?

    A download ?

    ???

  4. #4

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by kasracer
    SFU might have those abilities if you're using NT/XP Pro/2K or 2K3.

    If you don't know what SFU is, it's a free UNIX utilities made by Microsoft and it pretty much adds alot of Unix commands into the command prompt. I would like to add that the kill command included in the SFU works ALOT better than anything built into Windows.

    Do you use it ?

    if so does it have fuser ???

    I need to find out which user has what file open in a multi network environment.

    Jon

  5. #5
    KrisSiegel.com Kasracer's Avatar
    Join Date
    Jul 2003
    Location
    USA, Maryland
    Posts
    4,985
    I can't seem to find fuser but it still may be useful for you. It's a free download from Microsoft.com (just search for it on google).

    You may want to check out if cygwin has fuser.

    I don't know of any windows ways of doing this

  6. #6

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Can anyone else jump in on this...

    I need to be able to see what user has a specific file open...

    In winders...over a network...
    I need some program that allows me to determine this. I cant find much info on SFU or Cygwin..specifically fuser.

    Jon

  7. #7
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    If you're running a Windows Server Operating System, then go into :

    Start > Programs > Administrative Tools > Server Manager
    You can look at a list of open files, file locks and shares from in there.

    On the other hand, if you're running a Windows Client Operating System, then I would suggest using "Process Explorer" by http://www.sysinternals.com
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  8. #8

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Originally posted by plenderj
    If you're running a Windows Server Operating System, then go into :

    Start > Programs > Administrative Tools > Server Manager
    You can look at a list of open files, file locks and shares from in there.

    On the other hand, if you're running a Windows Client Operating System, then I would suggest using "Process Explorer" by http://www.sysinternals.com
    This is nice locally, but what about other users across the network?

  9. #9
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    Erm what do you mean across the network?
    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  10. #10

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    See my first post...

    Multi user corporate network.

    Lets say I am on my local machine
    \\JONNY

    There is a file server out there called
    \\VENUS. This file server holds CAD drawings and files avaliable to all users as mapped drives to their PC's. Lets say I want to delete a file 1.CAD located on the file server \\VENUS..I try to delete it..and I cant I get the message that the file is currently being used by another process. That other process is Joe Blow who has the file open...Joe Blow left his desk for 12 hours...that means this file sits there for 12 hours because he left it open.

    I want to be able to see who has WHAT FILE and their NAME across a network not just locally....

    Jon

  11. #11
    Retired VBF Adm1nistrator plenderj's Avatar
    Join Date
    Jan 2001
    Location
    Dublin, Ireland
    Posts
    10,359
    In theory you could install a remote admin package, but anyway, you can (I think) use the Computer Management tool in Administrative Tools on a 2000 or XP machine to view server manager on an NT Server.

    So, from my own desk in work (A Windows 2000 Professional Workstation) :
    Start > Settings > Control Panel > Administrative Tools > Computer Management
    Action > Connect to another computer
    I put in, for example, our PDC's name : NT1

    I can then go into :
    Computer Management (NT1) > System Tools > Shared Folders

    From there I can look at :
    Shares, Sessions & Open Files

    Microsoft MVP : Visual Developer - Visual Basic [2004-2005]

  12. #12

    Thread Starter
    Banned jhermiz's Avatar
    Join Date
    Jun 2002
    Location
    Antarctica
    Posts
    2,492
    Exactly what I was looking for.

    BTW I downloaded SFU on the MS Site, got a virus...had to do a boot up from the startup and delete the 227 megabyte VIRUS download.

    Thanks MS!

    Thanks Plender!!!

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