[C#] Ending and Starting Processes

Posts 1–4 of 4 · Page 1 of 1
[C#] Ending and Starting Processes
When you end a process, its actually quite easy.

Code:
System.Diagnostics.Process.End("FireFox.exe");
That ends Firefox.exe


Code:
System.Diagnostics.Process.Start("Firefox.exe", "http://mpgh.net");
That starts firefox, and brings up MPGH.net. Useful for advertising.
Wow? Your smart! No Duh...
However kids like you probaly try Process.Start(), and dont know what the fuck DIagnostics mean. Now shut the hell up and learn C#
Don't be a jerk.

Diagnostics is a namespace within System.dll, and Process is a class.

Your top code won't work at all, unless you modified your .NET framework.
Your bottom code won't work unless your FF executable is in the same folder or in one of the PATH locations.
Posts 1–4 of 4 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us