当您的Windows PC 上的应用程序停止响应时,您只需要做一件事:您需要强制它退出。Windows有几种方法可让您执行此操作。如果正在运行的软件崩溃并且无法关闭,Windows可能会自行解决问题,为您提供关闭或重新启动应用程序的安全选项。
如果您想知道如何在Windows上强制退出,尤其是对于不会自动关闭的应用程序,您需要按照以下步骤操作。
等待 Windows 终止无响应的应用程序(Wait for Windows to Terminate a Non-Responsive App)
当应用程序在Windows 10中停止响应时,请等待几秒钟。如果应用确实没有响应,Windows会自动响应,让应用有机会恢复。您会注意到应用程序窗口标题中出现了一个未响应(not responding)标记,这表明Windows正在开始倒计时以终止应用程序。
Windows没有设置执行此操作的时间,但它通常会尝试在几秒钟内解决正在运行的应用程序的问题。这可能意味着自动关闭应用程序(如果应用程序完全崩溃),或者如果响应时间较长或应用程序有可能恢复,Windows将让您决定下一步。
这包括强制退出并重新启动应用程序、关闭并保持关闭状态或允许应用程序有更多时间恢复的选项。如果应用程序正在使用大量系统内存,并且您确信它会在片刻后恢复,您可能会决定执行后者。
做出选择后,Windows应遵循您的决定。但是,如果您选择强制退出Windows上的应用程序但它仍然没有响应,则您需要采取更严厉的措施(如下所列)。
使用你的键盘(Use Your Keyboard)
在您急于使用其他方法(例如通过任务管理器(Task Manager))强制退出应用程序之前,您可能想尝试一下您的键盘。Windows长期以来一直包含键盘快捷键,可帮助您快速执行系统任务,例如关闭正在运行的程序。
您可以尝试的一种键盘快捷键是Alt + F4. Alt和 F4 键的组合指示Windows尝试并终止当前活动的窗口。如果您使用此键盘命令并且应用程序仍然没有响应,则应激活上一节中列出的措施,让您可以选择重新启动、强制退出或给予更多时间。
然而,Alt-F4快捷键并不是真正没有响应的应用程序的解决方案。如果是这种情况,您将需要尝试另一种方法。
使用任务管理器强制退出应用程序(Force Quit an App Using the Task Manager)
Windows PC上运行的每个程序、应用程序或系统服务都将显示在Windows 任务管理器(Windows Task Manager)中。您可以查看每个正在运行的程序的系统资源使用情况,从而帮助您对无响应的应用程序进行故障排除。
例如,如果一个应用程序达到 100% 的CPU使用率,这表明它可能运行得太难了,您的 PC 硬件无法处理。值得庆幸的是,任务管理器(Task Manager)不仅仅用于提供信息。您可以使用它来强制退出没有响应的应用程序。
- 为此,请右键单击任务栏(Taskbar)并选择任务管理器(Task Manager)选项。
- 在任务管理器(Task Manager)窗口中,找到您要强制关闭的应用程序。右键单击它,然后选择结束任务(End Task)以强制它退出。该应用程序应立即关闭,但如果没有,请再次重复该过程。
使用 Powershell 终端强制退出应用程序(Force Quit an App Using a Powershell Terminal)
任务管理器(Task Manager)是强制错误应用程序在完全停止响应时退出的最佳方法,但还有其他选择。如果您熟悉Windows PowerShell 终端(Windows PowerShell terminal),则可以使用taskkill命令在Windows上强制退出应用程序。如果您愿意,也可以使用旧的Windows命令行来运行此命令。
- 要打开PowerShell终端,请右键单击开始(Start)菜单并选择Windows PowerShell (Admin)选项。
- 在PowerShell终端窗口中,键入tasklist以查看所有正在运行的进程的列表。您需要通过将应用程序与其可执行文件名(executable filename)(例如yourphone.exe或conhost.exe)进行匹配来定位应用程序。
- 找到应用程序名称后,键入taskkill /im process.exe,将process.exe替换为您要强制退出的应用程序的可执行文件名(例如taskkill /im notepad.exe)。
- taskkill命令应成功强制应用程序退出(某些受保护的Windows服务(Windows)除外)。如果是这样,终端窗口中应该会出现一条成功消息以进行确认。否则,您需要重复该过程以强制它(或其他链接的进程)退出。
使用第三方应用程序强制退出应用程序(Using Third-Party Apps to Force Quit Apps)
如上述方法所示,Windows包含大量强制退出应用程序的方法。但是,如果您想要一种更快的方法来强制关闭应用程序,那么您需要查看第三方解决方案。
用于此目的的最佳、最简单的第三方应用程序之一是SuperF4。Ctrl + Alt + F4 )快速强制任何应用程序立即关闭。
这复制了PowerShell终端中使用的 taskkill 命令的效果,使其成为比Windows中包含的(Windows)Alt-F4键盘命令更强大的命令。
- 要使用 SuperF4,请先下载并安装它(download and install it)(或者下载并解压缩该应用程序的便携式版本)。安装后,运行SuperF4应用程序(或可移植目录中的SuperF4.exe文件)开始。
- SuperF4在后台运行,但您可以通过检查任务栏上的系统托盘图标来检查它是否正在运行。如果您希望它自动运行,请右键单击SuperF4托盘图标,然后选择Options > Autostart。
- SuperF4默认不以管理员权限运行。如果禁用此功能,SuperF4将无权强制所有应用程序(尤其是某些系统应用程序)退出。如果你想给它这个选项,右键单击SuperF4托盘图标,然后选择Elevate。要自动启用此功能,请在之后选择Options > Elevate on autostart。
- 要使用SuperF4(SuperF4)强制退出应用程序,请确保应用程序窗口处于活动状态。在窗口处于活动状态时,按键盘上的Ctrl + ALT + F4 强制退出应用程序。
修复无响应的 Windows 应用程序(Fixing Non-Responsive Windows Apps)
现在您知道如何在Windows上强制退出,您应该能够在未来快速解决应用程序无响应的问题。大多数应用程序应该会自动退出,但如果Windows无法关闭它们,您可以使用任务管理器(Task Manager)、PowerShell或(PowerShell)SuperF4等第三方应用程序来解决问题。
如果已安装的程序有问题,最好的办法是卸载它。有几种方法可以删除 Windows 10 中的软件,但(remove software in Windows 10)删除 Microsoft Store 应用程序(removing Microsoft Store apps)的过程略有不同。如果您不知道自己安装了什么,您可以生成一个已安装软件的列表(generate a list of installed software)以首先查看。
How to Force Quit Apps on Windows
When an app on your Windows PC stopѕ responding, there’s only one thіng to do: you’ll neеd to force it to quit. Windows has a few methods available to let you do this. If running software crashes and won’t close, Windows might be able to deal with the problem by itself, giνing you a safe option to close or restart the app.
If you want to know how to force quit on Windows, especially for apps that don’t close automatically, you’ll need to follow the steps below.
Wait for Windows to Terminate a Non-Responsive App
When an app stops responding in Windows 10, give it a few seconds. If the app is truly unresponsive, Windows responds automatically by giving the app the chance to recover. You’ll notice a not responding tag appear in the app window title, which indicates that Windows is beginning the countdown to terminate the app.
There isn’t a set time for Windows to do this, but it’ll usually try to resolve a problem with a running app within a few seconds. This could mean closing the app automatically (if the app crashes completely) or, if it takes longer to respond or there’s a chance the app can recover, Windows will let you decide the next steps.
This includes the option to force quit and restart the app, close it and leave it closed, or allow the app more time to recover. You may decide to do the latter if the app is using a lot of system memory and you’re confident that, after a few moments, it’ll recover.
Once you’ve made your choice, Windows should follow through with your decision. If you choose to force quit an app on Windows and it still doesn’t respond, however, you’ll need to take more drastic measures (like those listed below).
Use Your Keyboard
Before you rush to force quit an app using other methods, such as through Task Manager, you might want to give your keyboard a try. Windows has long included keyboard shortcuts to help you quickly perform system tasks, such as closing a running program.
One keyboard shortcut you could try is Alt + F4. The combination of the Alt and F4 keys instructs Windows to try and terminate the currently active window. If you use this keyboard command and the app still doesn’t respond, the measures listed in the section above should activate, giving you the option to restart, force quit, or give more time.
The Alt-F4 shortcut isn’t a solution for apps that really aren’t responding, however. You’ll need to try another method if this is the case.
Force Quit an App Using the Task Manager
Each program, app, or system service running on your Windows PC will appear in the Windows Task Manager. You can view system resource usage for each running program, helping you to troubleshoot apps that aren’t responding.
For instance, if an app reaches 100% CPU usage, that would indicate that it’s probably running too hard for your PC hardware to handle. Thankfully, the Task Manager isn’t just for information. You can use it to force-quit apps that aren’t responding.
- To do this, right-click the Taskbar and select the Task Manager option.
- In the Task Manager window, locate the app you’re looking to force close. Right-click it, then select End Task to force it to quit. The app should close immediately but, if it doesn’t, repeat the process again.
Force Quit an App Using a Powershell Terminal
The Task Manager is the best way to force an errant app to quit when it stops responding completely, but there are alternatives. If you’re familiar with the Windows PowerShell terminal, you can use it to force quit apps on Windows using the taskkill command. You can also use the old Windows command line to run this command, if you prefer.
- To open a PowerShell terminal, right-click the Start menu and select the Windows PowerShell (Admin) option.
- In the PowerShell terminal window, type tasklist to view a list of all running processes. You’ll need to locate the app by matching it to its executable filename (for instance, yourphone.exe or conhost.exe).
- Once you’ve found the app name, type taskkill /im process.exe, replacing process.exe with the executable filename of the app you’re looking to force quit (for instance, taskkill /im notepad.exe).
- The taskkill command should successfully force the app to quit (except for some protected Windows services). If it does, a success message should appear in the terminal window to confirm. Otherwise, you’ll need to repeat the process to force it (or other linked processes) to quit instead.
Using Third-Party Apps to Force Quit Apps
As the methods above show, Windows includes plenty of methods for force quitting apps. If you want a quicker method for forcing apps to close, however, then you’ll need to look at third-party solutions.
One of the best, and simplest, third-party apps for this purpose is SuperF4. This app has a simple purpose, allowing you to quickly force any app to immediately close using a keyboard shortcut (in this case, Ctrl + Alt + F4).
This replicates the effect of the taskkill command used in the PowerShell terminal, making it a stronger command to use compared to the Alt-F4 keyboard command included in Windows.
- To use SuperF4, download and install it first (or download and unzip the portable version of the app instead). Once installed, run the SuperF4 app (or the SuperF4.exe file in the portable directory) to begin.
- SuperF4 runs in the background, but you can check that it’s running by checking the system tray icons on the taskbar. If you want it to run automatically, right-click the SuperF4 tray icon, then select Options > Autostart.
- SuperF4 doesn’t run with admin access by default. If this is disabled, SuperF4 won’t have the rights to force all apps (especially some system apps) to quit. If you want to give it this option, right-click the SuperF4 tray icon, then select Elevate. To enable this automatically, select Options > Elevate on autostart afterwards.
- To force-quit an app using SuperF4, make sure the app window is active. With the window active, press Ctrl + ALT + F4 on your keyboard to force the app to quit.
Fixing Non-Responsive Windows Apps
Now you know how to force quit on Windows, you should be able to quickly resolve issues with non-responsive apps in future. Most apps should quit automatically, but if Windows won’t shut them down, you can use the Task Manager, PowerShell, or a third-party app like SuperF4 to deal with the problem instead.
If an installed program is proving problematic, the best thing to do is to uninstall it. There are a few ways you can remove software in Windows 10, although the process is slightly different for removing Microsoft Store apps. If you don’t know what you have installed, you can generate a list of installed software to review first.