【发布时间】:2013-11-25 20:24:43
【问题描述】:
您好,
是否有用于重启管理器 (see link here) 代码的VBScript 代码使Microsoft Word 关闭并重新打开?
我以 Microsoft Word 为例。我只是想将消息发送到 RestartManager 以关闭特定的应用程序。
【问题讨论】:
-
来自文档:
Purpose: The Restart Manager API can eliminate or reduce the number of system restarts that are required to complete an installation or update.也许我错了,但它似乎与 Microsoft Word 无关。 -
我以 Microsoft Word 为例。我只是想将消息发送到 RestartManager 以关闭特定的应用程序。
-
taskkill有什么问题?
-
它终止应用程序。例如:如果我们在 Microsoft Word 上使用 taskkill,它只会终止它并且未保存的数据会丢失。如果我们使用 RestartManager(这在安装程序中使用),它会关闭 Word,但是当我再次打开它时,我们可以找到带有未保存数据的 Document recovery panme。
标签: vbscript application-restart restartmanager