windows “关闭”程序位于何处?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/7809891/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 08:50:16  来源:igfitidea点击:

Where is the "shut down" program located?

windows

提问by P'sao

In windows 7 when you click start...then the shut down button. what program is it calling to do the work?

在 Windows 7 中,当您单击开始...然后单击关闭按钮。它调用什么程序来完成这项工作?

回答by tenfour

You can always use where.exe to find things like this:

你总是可以使用 where.exe 来找到这样的东西:

C:\>where shutdown.exe
C:\Windows\system32\shutdown.exe

回答by KeithS

There is a command-line process "shutdown.exe" which is generally the go-to for programmatic shutdowns/restarts.

有一个命令行进程“shutdown.exe”,它通常是程序关闭/重启的首选。

http://technet.microsoft.com/en-us/library/bb491003.aspx

http://technet.microsoft.com/en-us/library/bb491003.aspx

This does the actual shutting down. The various windows or dialogs you see asking you to choose how you want to shut down (shut down, sleep, hibernate, restart, log off) and/or asking you to confirm you want to do what you said you did are just part of the taskbar/start menu program, explorer.exe (which is also the Windows Explorer executable).

这将进行实际关闭。您看到的各种窗口或对话框要求您选择关闭方式(关机、睡眠、休眠、重新启动、注销)和/或要求您确认是否要执行您所说的操作,这只是其中的一部分任务栏/开始菜单程序 explorer.exe(它也是 Windows 资源管理器的可执行文件)。

回答by Jonas B

C:\Windows\System32\shutdown.exe

Though this is definitely not a Stack Overflow question.

虽然这绝对不是 Stack Overflow 的问题。