如何获得地点运行流程 [英] How to get place run process

查看:65
本文介绍了如何获得地点运行流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

hello code project

i希望一切顺利

i有问题

如何获得Place run流程

例如

explorer = c:\windows \ explorer.exe





hello code project
i hope all good
i have problem with
how to get Place run process
for example
explorer = c:\windows\explorer.exe


Private Sub lsproirtem()
    Dim ps() As Process
    Try
        ps = Process.GetProcesses()
        listpro.BeginUpdate()
        listpro.Clear()
        listpro.Columns.Add("Name", 150, HorizontalAlignment.Left)
        listpro.Columns.Add("ID", 60, HorizontalAlignment.Left)
        listpro.Columns.Add("Priority", 60, HorizontalAlignment.Right)
        listpro.Columns.Add("Memory", 100, HorizontalAlignment.Right)
        listpro.Columns.Add("patch Process", 250, HorizontalAlignment.Right)
 
        Dim p As Process
        For Each p In ps
            Dim lvi As ListViewItem = New ListViewItem()
            lvi.Text = p.ProcessName.ToString
            lvi.SubItems.Add(p.Id.ToString)
            lvi.SubItems.Add(p.BasePriority.ToString())
            lvi.SubItems.Add(p.WorkingSet64.ToString())
            lvi.SubItems.Add(code get Place run here )
            listpro.Items.Add(lvi)
        Next p
        listpro.EndUpdate()
    Catch e As Exception
        MessageBox.Show(e.Message)
    End Try
End Sub





非常感谢



我尝试了什么:



我试过如何让lapce处理



thank you so much

What I have tried:

im tried with how to get lapce to process

推荐答案

参考这个

c# - 按名称获取正在运行的进程的路径 - Stack Overflow [ ^ ]

代码在C#中,但您可以使用逻辑在VB中编写。
refer this
c# - Getting a path of a running process by name - Stack Overflow[^]
the code is in C#, however you can use the logic to write in VB.


这篇关于如何获得地点运行流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆