How to get a list of open file descriptors for a process in vb6

How to get a list of open file descriptors by process id in vb6?

I am interested in copying and getting file names.

Looking for the software equivalent of what the process explorer does.

Thanks in advance

+3
source share
1 answer

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
source

Source: https://habr.com/ru/post/946300/


All Articles