使用 shutdown.exe 重新启动应用程序

Restarting applications with shutdown.exe

根据 shutdown.exe 的帮助,/g 开关执行以下操作

/g         Full shutdown and restart the computer. After the system is
               rebooted, restart any registered applications.

我注意到当我使用这个开关时,并不是所有在系统关闭之前正在使用的应用程序都会重新启动。

所以我的问题是:是不是有限制可以重启的应用程序数量,还是我不明白这个词的意思'registered'?我怀疑是后者,希望得到一些指导。

/g 将重新启动任何使用 RegisterApplicationRestart API 注册自身的应用程序,除非该应用程序被强制终止。因此,如果您没有足够的时间 /t 让应用程序正常保存和关闭,它将不会重新启动。