Wednesday, September 1, 2021

Managing task on Windows using CMD



Managing task on Windows using CMD using "tasklist", "taskkill" and "findstr".

(base) CMD>tasklist | findstr "WINWORD*"
WINWORD.EXE --  3164 Console --   7    251,092 K
WINWORD.EXE --  9292 Console --   7    245,508 K
WINWORD.EXE -- 13640 Console --   7    246,748 K
WINWORD.EXE -- 10288 Console --   7    242,704 K
WINWORD.EXE -- 19244 Console --   7    246,996 K
WINWORD.EXE -- 18416 Console --   7    246,552 K
WINWORD.EXE -- 12380 Console --   7    163,932 K

(base) CMD>taskkill /F /PID 3164
SUCCESS: The process with PID 3164 has been terminated.

(base) CMD>taskkill /IM "WINWORD.exe" /F
SUCCESS: The process "WINWORD.EXE" with PID 13640 has been terminated.
SUCCESS: The process "WINWORD.EXE" with PID 10288 has been terminated.
SUCCESS: The process "WINWORD.EXE" with PID 19244 has been terminated.
SUCCESS: The process "WINWORD.EXE" with PID 18416 has been terminated.
SUCCESS: The process "WINWORD.EXE" with PID 12380 has been terminated.

Tags: Technology,Windows CMD,

No comments:

Post a Comment