How to Force Close a Program on Windows
Close frozen or unresponsive programs using simple Windows methods, Task Manager, and command line options.
Before you start
Step-by-step fixes
1. Try the normal close methods first
Before force closing a program, try the usual Windows methods. These are the safest options and may let the app close cleanly.
Click the X button, right-click the app on the taskbar and choose close, or press Alt + F4 while the program window is active.
2. Use Task Manager to end the program
If the app is frozen or says Not Responding, open Task Manager and end it there.
Press Ctrl + Shift + Esc. You can also press Ctrl + Alt + Delete and choose Task Manager.
Find the frozen app in the Processes list, select it, and click End task.
3. List running processes with tasklist
If the app is still hanging, or if you want to identify the exact process name, open Command Prompt and list running tasks.
tasklist
Look for the application name or a related process such as chrome.exe, notepad.exe, or another program executable.
4. Narrow the list with tasklist filter
If there are too many running processes, filter by image name to find the exact program faster.
tasklist | findstr notepad
Replace notepad with part of the program name you are trying to close.
5. Force close by program name
When you know the process name, use taskkill with the image name.
taskkill /IM notepad.exe /F
It forcefully closes every running process that matches that program name.
6. Force close by PID
If you want to target one exact process, use its PID instead of the program name.
taskkill /PID 1234 /F
This method is safer when multiple copies of the same app are open and you only want to end one of them.
7. Restart Windows Explorer if the desktop or taskbar is frozen
Sometimes the issue is not the app itself. The taskbar, Start menu, or desktop may be frozen because Windows Explorer is stuck.
taskkill /IM explorer.exe /F
start explorer.exe
This temporarily closes and reopens the Windows desktop shell. Your screen may flicker for a moment.
8. Reboot the PC if nothing else works
If the program will not close and the system remains unstable, save anything you can and restart Windows.
A reboot clears temporary system locks and is often the fastest recovery method when several apps are stuck at the same time.
Common situations
Try Alt + F4 first, then use Task Manager if the app still does not respond.
Use tasklist to confirm the process is still active, then close it with taskkill.
Try Alt + Tab, Ctrl + Shift + Esc, or Ctrl + Alt + Delete to get back to Task Manager.
Restart explorer.exe or reboot the computer if the desktop shell itself is the problem.