在 Windows 2000 Pro 上通过 Java 获取活动进程

发布于 2024-08-03 17:12:25 字数 178 浏览 2 评论 0原文

我想获取Win2000机器上所有活动进程的名称。我知道“tlist -s”是命令,但要使用它,必须从Win2000 CD-ROM 中提取“tlist.exe”。我还知道“任务列表”仅适用于 XP 或更高版本。

我在 VM Ware 上运行测试,但没有 CD-ROM。还有其他方法可以在Win2000上以编程方式获取任务列表吗?

I want to get the name of all active process on a Win2000 machine. I know that "tlist -s" is the command, but to use this, the "tlist.exe" has to be extracted from the Win2000 CD-ROM. I also know "tasklist" only works on XP or greater.

I am running my tests on VM Ware, and do not have a CD-ROM. Is there another way to programmatically get the task list on Win2000?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

灰色世界里的红玫瑰 2024-08-10 17:12:25

我最终只是使用 JNI 在我需要的所有平台上处理这种情况。请参阅我的另一篇文章(试图使用 SWT 来获取此列表,但它提供了一个很好用的 JNI 可下载示例):

通过 SWT 获取任务管理器列表?

I ended up just using JNI to handle this case across all platforms that I needed. Refer to another post of mine (which was trying to use SWT to obtain this list, but it gives a good JNI downloadable example that is useful):

Get task manager list via SWT?

我偏爱纯白色 2024-08-10 17:12:25

在Java中不调用第三方应用程序(比如PsList)?没有 JNI 就不行。

In Java without calling a 3rd party application (like say PsList)? Not without JNI.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文