17-08-15, 06:18 PM
(آخر تعديل لهذه المشاركة : 17-08-15, 06:21 PM {2} بواسطة YazanOtoum.)
مثلا هذا الكود
كود :
Dim cl() As String
For Each p As Process In Process.GetProcessesByName("notepad")
Using searcher As New ManagementObjectSearcher("SELECT CommandLine FROM Win32_Process WHERE ProcessId = " & p.Id)
For Each mgmtObj As ManagementObject In searcher.Get()
cl = mgmtObj.Item("CommandLine").ToString().Split("""")
MsgBox(cl(cl.Length - 1))
Next
End Using
Nextهذا كود لجلب processes path مسار العمليات
