简体   繁体   English

从命令行关闭窗口(在Windows上)

[英]Close window from command line (on windows)

Is it possible to send a close command to an application from command line? 是否可以从命令行向应用程序发送关闭命令? I know that I can kill the process, but it seems a bit heavy handed. 我知道我可以取消该进程,但是似乎有点费力。 If not from command line, another suggestion? 如果不是从命令行,还有其他建议吗?

为此,可以使用taskkill(不带-f选项)。

我确信您知道您可以使用任务管理器来关闭程序...,或者,您可以使用更大的表亲Process Explorer轻松监视和关闭进程

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在 Windows 命令提示符中关闭窗口 - Close a Window in Windows Command Prompt 关闭应用程序窗口而不终止命令行 - Close an application window without terminating in Command Line 在新窗口中从命令行打开窗口中的chrome - Open chrome in windows from the command line in a new window 如何从Windows 7任务栏单击关闭多个命令行窗口? - How to close numerous command line windows in a single click from Windows 7 taskbar? 如何关闭从命令行使用.hta打开的窗口? (不是手动的) - How do I close a window that was opened with a .hta from the command line? (not manually) 从命令行运行python脚本会使窗口立即弹出并关闭 - Running python scripts from a command line makes window pop and close immediately 当 'Cls' 不关闭命令行窗口时,什么代码会关闭? - What code will close a the command line window when 'Cls' does not? Windows批处理启动命令和完成时的ECHO并关闭cmd的窗口 - Windows batch start command and ECHO on completion and close the cmd's window 在Windows 10上使用命令行或Powershell关闭“此PC” - Close “This PC” using command line or Powershell on Windows 10 如何使用Windows命令行关闭firefox中的最后一个选项卡 - How to close last tab in firefox using windows command line
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM