CODE: [Copy to clipboard]for /F "tokens=1,2" %%i in ('tasklist /fi "Imagename eq mspaint.exe" /fo list') do if /i %%i==pid: ntsd -c q -p %%j