How to dump output of Sysninternals handle.exe to a text file?

冷暖自知 提交于 2019-12-11 14:28:06

问题


I want to see who locks a file, quickly.
So I created a CMD script that will run Handle, put its output in a file and then open that file in the default text editor.

prompt $
cls
handle > handle.txt
handle.txt

When I run the script a new console wnd is open, I see handle running in it, then it quickly closes. It generates a file called handle.txt, but it is empty. I tried to run handle.exe as admin, but still doesn't work.

What I do wrong?

来源:https://stackoverflow.com/questions/30504972/how-to-dump-output-of-sysninternals-handle-exe-to-a-text-file

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!