Are you interested in becoming an AWS Certified Solutions Architect?
Discover a new interactive way of training for the exam.
Dim RC As String = TextBox1.Text Dim taskID As String = listview2.selecteditems (doesnt work), (when i replace with "4784", it works) Dim theScope As New ManagementScope("\\" & RC & "\root\cimv2") Dim objectQuery As New ObjectQuery(String.Concat("SELECT * FROM Win32_Process WHERE ProcessID='", taskID, "'")) For Each managementObject As ManagementObject In (New ManagementObjectSearcher(theScope, objectQuery)).[Get]() managementObject.InvokeMethod("Terminate", Nothing) Next End Sub
Add your voice to the tech community where 5M+ people just like you are talking about what matters.
Join the community of 500,000 technology professionals and ask your questions.