|
-
Jan 27th, 2006, 11:24 PM
#1
Thread Starter
Lively Member
[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.
-
Jan 27th, 2006, 11:38 PM
#2
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;
-
Jan 27th, 2006, 11:45 PM
#3
Thread Starter
Lively Member
Re: Process.
Cool, thanks Phill64.
But it owuld be
Last edited by {FPP}; Jan 27th, 2006 at 11:56 PM.
-
Jan 27th, 2006, 11:57 PM
#4
Re: [RESOLVED] Process.
You would probably want to use a ProcessStartInfo object so that you can specify not to create a window.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|