shutdown
偶然发现以下选项说明时,我正在阅读Windows中命令的一些选项:
/r Full shutdown and restart the computer. /g Full shutdown and restart the computer. After the system is rebooted, restart any registered applications.
我以为Windows重新启动时,每个应用程序都会在关闭过程中关闭,然后在系统启动时再次启动。
我想到的一些可能的注意事项是:
有这些吗?都不是?
shutdown /g
啊该/g
选项将重新启动使用RegisterApplicationRestart API注册为重新启动的应用程序。
Windows重新启动管理器(在Windows Vista中引入)支持正常关闭和重新启动使用RegisterApplicationRestart API注册以重新启动的应用程序。
Windows Update使用此功能–多亏了重新启动管理器,当我早晨在台式机上打哈欠时,即使在系统重新启动后,我的Outlook,浏览器窗口,OneNote,Visual Studio和Messenger也都排成一行就像我上床睡觉时一样
假设您要启动“重新启动后自动重新启动所有内容”之一。直到几周前,我才意识到必须编写一个使用Restart Manager API(例如RmStartSession和RmShutdown)的小型应用程序来执行此操作。
然后让我感到震惊的是,shutdown命令必须对此具有支持。实际上,它具有:
shutdown /g
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句