View Single Post
Old June 9th, 2009   #29 (permalink)
S.T.A.R.S.
 
S.T.A.R.S.'s Avatar
 
Join Date: Jan 2006
Location: Planet Earth...
Posts: 593
Quote:
Originally Posted by @ruantec View Post
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...
S.T.A.R.S. is offline   Reply With Quote