Quote:
Originally Posted by @ruantec
if you want to get the process name just do that:
Code:
private void button1_Click(object sender, EventArgs e)
{
Process[] procs = Process.GetProcesses(Environment.MachineName);
foreach (Process process in procs)
listBox1.Items.Add(process.ProcessName);
}
|
Lol rauntec.I know what I need to do to get the current processes.The thing I don't know is WHAT I need to do to get the extension for EACH process.This code that I gave here shows the current processes like for example "notepad"....blablabla.What I want to do is how to show the EACH process extension,for example--->"notepad.exe"<---You can here see the EXE extension.
So how to display the extension for EACH process??????
__________________
GOODBYE FOREVER EVERYONE...