Results 1 to 2 of 2

Thread: How to detect if a file is being used by another process?

  1. #1

    Thread Starter
    New Member
    Join Date
    Feb 2005
    Posts
    3

    How to detect if a file is being used by another process?

    Hi,

    In my code I'm trying to delete a log file from the pc, but before I can delete it I have to wait for its controlling application to finish writing to it. If I try to delete it while another process is using it, I just get an error message.

    So, is there any way to detect if a file is being used by another process?

  2. #2
    Super Moderator manavo11's Avatar
    Join Date
    Nov 2002
    Location
    Around the corner from si_the_geek
    Posts
    7,171

    Re: How to detect if a file is being used by another process?



    Has someone helped you? Then you can Rate their helpful post.

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