从
Sysinternals开始使用
Handle.exe.
原文链接:https://www.f2er.com/vb/255585.htmlShell ("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"