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?