问题
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