Code Snippet
System.Diagnostics.Process[] myProcesses = System.Diagnostics.Process.GetProcesses();
for (int i = 0; i < myProcesses.Length; i++)
{
string processName = myProcesses[i].ProcessName;
processName = Path.GetFullPath(processName);
richTextBox1.AppendText(processName);
richTextBox1.AppendText(System.Environment.NewLine);
}
I am having trouble showing the full path of a running process. I am trying to populate a rich text box with the full paths of all running processes such as "C:\WINDOWS\system32\notepad." I can get a list of all the running processes just fine, but when I try to do the fullpath command, I get the path of the debug folder of the project.