在Windows 8上以编程方式启动任务管理器

时间:2013-04-14 07:23:54

标签: windows taskmanager

我需要以编程方式从Windows 8中启动任务管理器。

在Windows 8之前,我只是使用了类似的东西:

Dim sPath$
Dim fso As New FileSystemObject
sPath = fso.GetSpecialFolder(1)
sPath = sPath & "\taskmgr.exe"
Shell(sPath)

实际上编程语言并不重要。

似乎是Windows 8系统上不再有taskmgr.exe。

有人知道如何启动任务管理器吗?

我不是在谈论选择窗口,我想立即打开任务管理器。

2 个答案:

答案 0 :(得分:1)

在Windows 8中,任务管理器仍然存在。例如,请参阅this article有关Windows 8任务管理器的信息。

答案 1 :(得分:0)

你可以分析Shell()函数调用的返回码。它可以帮助您解决确切的问题。