Skip to main content

KILL PROCESS USING COMMAND PROMPT


Task Manager is generally used to kill or end a process in Windows . This method is effective but not nearly as fun as killing a process in Command Prompt. And one more advantage of killing process using Command Prompt provides much more control and the ability to end multiple processes at once.
All of this is possible with the TaskKill command. You can kill a process by the process ID (PID) or by image name (EXE filename).
Open up an Administrative level Command Prompt and run tasklist to see all of the running processes:
C:\>tasklist

Image Name PID Session Name Mem Usage
========================= ======== ================ ============
firefox.exe 26356 Console 139,352 K
regedit.exe 24244 Console 9,768 K
notepad.exe 24696 Console 22,028 K
notepad.exe 25304 Console 5,852 K
explorer.exe 2864 Console 72,232 K
cmd.exe 18664 Console 2,380 K
conhost.exe 2528 Console 7,852 K
In the example above you can see the image name and the PID for each process. If you want to kill the firefox process run:
C:\>Taskkill /IM firefox.exe /F
or
C:\>Taskkill /PID 26356 /F
The /f flag is kills the process forcefully.

Comments

Popular posts from this blog

How to lock any file or folder without any software.

  With this trick, you can create a secure password protected  folder  in Windows which no one except you can access. To use this trick, follow the instructions given below:-   1.  Open  Notepad . 2.   Copy and paste  the exact code given below:- cls @ECHO OFF title computer-tricks-corner.blogspot.com if  EXIST  "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" goto  UNLOCK if NOT EXIST MyFolder goto MDMyFolder :CONFIRM echo Are you sure to lock this folder? (Y/N) set/p "cho=>" if %cho%==Y goto LOCK if %cho%==y goto LOCK if %cho%==n goto END if %cho%==N goto END echo  Invalid  choice. goto CONFIRM :LOCK ren MyFolder "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" attrib +h +s "Control Panel.{21EC2020-3AEA-1069-A2DD-08002B30309D}" echo Folder locked goto End :UNLOCK echo Enter password to Unlock Your Secure Folder set/p "pass=...

How to install Bash on Windows 11

Microsoft’s Windows Subsystem for Linux 2 was released nearly 3 years ago. This brought the ability to run the Bash shell and run Linux binary executables that you’d be able to run on Ubuntu Linux. Microsoft has since only continued to improve its Windows Subsystem for Linux, and an update in a Windows 10 preview build back in mid-2020 made it easier to install Bash. That method carried over to Windows 11. To install Bash, open Windows Terminal as an admin. You can do this by right-clicking the Windows icon and selecting “Windows Terminal (Admin)” from the power user menu. (If you’re on Windows 10, you may see it listed as “Windows Powershell (Admin)” in the menu.) Run Windows Terminal as an admin In Windows Terminal, run this command: wsl --install The command to install WSL Windows will then begin downloading and installing Virtual Machine Platform, Windows Subsystem for Linux, WSL Kernel, and GUI App Support. It will also download Ubuntu, but will install it after a re...

Medal of Honor: Warfighter GPU & CPU Performance

Released on PC, Xbox 360 and PlayStation 3 in October 2010, Danger Close and EA's Medal of Honor reboot brought the franchise to modern-day Afghanistan after a dozen previous titles set during World War II. Having been a fan of entries including Medal of Honor: Airborne and Medal of Honor: Pacific Assault, I was excited to crack open the latest version and test its performance on enthusiast hardware . Although its graphics weren't groundbreaking, 2010's Medal of Honor looked decent while allowing low-end GPUs to provide playable performance using respectable quality settings. Looking at the old benchmarks I see that even then quad-core processors were a must, with dual-core chips giving half as much performance. Having grown accustomed to Modern Warfare-like titles, Medal of Honor's relatively tame GPU requirements weren't too shocking. Interestingly, it seems Medal of Honor: Warfighter might buck that trend, as its recommended system specificati...