### Question 1:
The problem?
1, Suppose the PID of notepad.exe is 2328, I executed the following command successfully under DOS:
ntsd -c q -p 2328
But when I use it in a batch script like this, it fails:
@echo off
set /p closeprocess= Please enter the PID of the process you want to force close
ntsd -c q -p "%closeprocess%"
goto :eof
The error message is as follows:
Unable to find process '2328', HRESULT 0x80004002
"This interface is not supported"
ntsd: exiting - press enter ---
Why?
2. Also, ask about the specific usage of wmic process delete, is this delete also to force delete the process, including some system processes?
Waiting online......
The problem?
1, Suppose the PID of notepad.exe is 2328, I executed the following command successfully under DOS:
ntsd -c q -p 2328
But when I use it in a batch script like this, it fails:
@echo off
set /p closeprocess= Please enter the PID of the process you want to force close
ntsd -c q -p "%closeprocess%"
goto :eof
The error message is as follows:
Unable to find process '2328', HRESULT 0x80004002
"This interface is not supported"
ntsd: exiting - press enter ---
Why?
2. Also, ask about the specific usage of wmic process delete, is this delete also to force delete the process, including some system processes?
Waiting online......


