I get the processes like this:
Process[] Proc; void startprocess() { Proc = Process.GetProcesses(); for (int i = 0; i < Proc.Length; i++) { ListViewItem itm2 = new ListViewItem(Proc[i].ProcessName + ".exe"); if (!listView1.Items.Contains(itm2)) { this.listView1.Items.Add(itm2); } } } Now I can not figure out how to open the folder to the lying file.
Tried to do so:
foreach (ListViewItem item in listView1.SelectedItems) { Process.Start(new ProcessStartInfo("explorer.exe", @" /select," + item.Text)); } But always opens the same working folder.