Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

C# 

[Source] Is my process running? Check to see if your program is running or not :D

(Oct 18, 2012 06:27 AM)BaussHacker Wrote:  Actually it doesn't. It makes no sense to check if the process you're running is running ;)

check the rest of what i said and not just that line :P yes, the GetCurrentProcess is useless, I was more referring to the name length part. That can be used to get current applications. Look at my example if you don't understand.
Thanks to all who commented.
If anyone's wondering, this was a parody of this thread: https://hackforums.net/showthread.php?tid=2910267 🙂
This is not good, you should use the PID.
(Oct 18, 2012 11:52 AM)Debroski Wrote:  check the rest of what i said and not just that line :P yes, the GetCurrentProcess is useless, I was more referring to the name length part. That can be used to get current applications. Look at my example if you don't understand.

Yeah I know, but I was just speaking about this alone. It has no real purpose xD If it can even execute that then it's running rofl :p
bool IsRunning() //method
{ //bracket
return true; //return true
} //bracket
(Jan 1, 2015 01:56 PM)indecisveenough Wrote:  The problem here is you guys don't respect the innovation and engineering done by apple. Also there warranty is simply outstanding. Specs and benchmarks aren't everything.
(Oct 18, 2012 07:13 PM)Birds Wrote:  This is not good, you should use the PID.

So you can waste more time checking if the application is still running while you execute methods from it during runtime? 🤨

... At all the people who try and expand on the OP's code... That's even funnier than writing the code in the first place and thinking it has a purpose.
Getting Started: C/C++
[C/C++/.NET/x86 ASM - Automation Programmer]
why would anyone need this TBH
if the form is open the process is open Daa :P

Troll Mode on Yeah yeah stop trolling on hackforums then if this what a troll
Smoke crack and fly, Don't smoke weed and die
If this program is running it shoud close it just for the lolz :D
(Oct 18, 2012 07:13 PM)Birds Wrote:  This is not good, you should use the PID.

LOL. I hope this is a troll.
If not, facepalm.
If its not running then System.Diagnostics.Process.GetCurrentProcess().ProcessName will result in an exception, OPs code will only work if the process is running.
FR1908
(Oct 20, 2012 06:03 AM)The-One Wrote:  If its not running then System.Diagnostics.Process.GetCurrentProcess().ProcessName will result in an exception, OPs code will only work if the process is running.

It wouldn't even result in an exception. For an exception to be thrown your process also has to run ;)
Lol why is this thread even still alive? The code can't be run unless the CurrentProcess in question, is running.
Obvious troll is obvious :P


Possibly Related Threads...
Thread / Author Replies Views Last Post
[C#] by gigajewMar 4, 2019 08:44 AM 15 1,611 Mar 4, 2019 08:44 AM
Last Post: Aristocles
[.NET] by Formula 1Mar 3, 2019 02:36 PM 6 230 Mar 3, 2019 02:36 PM
Last Post: Formula 1
[.NET] by BapeZOct 1, 2018 01:09 PM 5 279 Oct 1, 2018 01:09 PM
Last Post: oxidebuffalo