How do I get the list of open file handles by process in vb6

后端 未结 1 726
暖寄归人
暖寄归人 2020-12-21 10:52

How do I get the list of open file handles by process id in vb6?

I\'m interested in digging down and getting the file names as well.

Looking for the programm

相关标签:
1条回答
  • 2020-12-21 11:21

    Use Handle.exe from Sysinternals.

    Shell ("c:\...\handle.exe ... >> " & app.path & "\tmp.txt",vbHide)
       '...Write something which will get contents from App.path & "\tmp.txt" ...
       '...Wait some time ,because killing the file at this moment 
       'will bring an error
    Kill App.Path & "\tmp.txt"
    
    0 讨论(0)
提交回复
热议问题