-
[RESOLVED] Process.
Ok, i have not been sucessful at doing this, and wondred if you guys knew how. On a button click an filedialog comes up and asks the user to select an App file (.exe). Then once they select it, they are told what the its process name it would be if its running. for example if the selected Internet explorer, they would be told IExplore, i hope htis makes sense.
-
Re: Process.
you will need to start the program, and then get its processName, and then kill it.
like so (although i used an ini file :P same thing, it returns "Notepad")
Code:
System.Diagnostics.Process tapp = System.Diagnostics.Process.Start("d:\setup.ini");
textBox1.Text = tapp.ProcessName;
tapp.Kill;
-
Re: Process.
Cool, thanks Phill64.
But it owuld be
:bigyello:
-
Re: [RESOLVED] Process.
You would probably want to use a ProcessStartInfo object so that you can specify not to create a window.