CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2002
    Location
    Philadelphia
    Posts
    150

    who has file in use

    How can one programmtically determine what process or user is using a particular file? I want my program to replace and/or delete some files that are in use when they should not be in use.
    Sincerely,
    - Ron

  2. #2
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656
    What kind of files?
    There is a tool on this site for DLLs - "Who's Locking?" v1.3
    http://www.codeguru.com/Cpp/W-P/dll/article.php/c3641/
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

  3. #3
    Join Date
    Mar 2002
    Location
    Philadelphia
    Posts
    150
    Awesome. Thanks. That is just what I needed! And it works!
    Sincerely,
    - Ron

  4. #4
    Join Date
    Aug 2000
    Location
    New York, NY, USA
    Posts
    5,656
    You are welcome.
    Unfortunately, I can't take the credit - I did not write that tool...
    Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
    Convenience and productivity tools for Microsoft Visual Studio:
    FeinWindows - replacement windows manager for Visual Studio, and more...

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

Featured