Jump to content


Photo

AHK to discern which Process is Holding a specific flat file


  • Please log in to reply
1 reply to this topic

#1 Costas

Costas
  • Members
  • 122 posts

Posted 18 July 2012 - 12:05 AM

Dear Fellow AutoHotKeyers,

We have an automated process that runs at night. One of the outputs of this job is a flat file. Recently, this process failed because another process had opened the file.

I would like to be able to use AHK to see which process has opened a specific file. Is this possible?

Thanks,
Costas

#2 Pulover

Pulover
  • Members
  • 1251 posts

Posted 19 July 2012 - 05:39 PM

I've searched that too and it seems to be a very hard task finding the app that's locking the file with a script only, without using external programs like Process Explorer. You can check if the file is locked using AHK, but I have found no way to know what process is using it.