编程语言

img iwebsms

通过WMI列出Windows系统进程(VB.net)

发表于2004/10/6 19:00:00  1592人阅读

        Dim cmicWmi As New System.Management.ManagementObjectSearcher("SELECT * FROM Win32_Process")

 

        For Each cmicWmiObj As ManagementObject In cmicWmi.Get

            ListBox1.Items.Add("Service: " + cmicWmiObj("Name") + " FilePath: " + cmicWmiObj("ExecutablePath"))

        Next
阅读全文
0 0

相关文章推荐

img
取 消
img