I never experienced as .net developers
neither also as c++ or C# thus I hack a lack knowledge of this topic.
But i'm still curious mode right now, and I'm still looking around.
How could java detect another program is currently running?
Let's assume this windows environment instead of linux.
My question asking it is that because,
I dunno how to differenciate between one and another frame (running program)
that currently run.
Someone say, ID? I really dunno, what's that. ID of each frame?
is that really exist instead of the memory address of each program?
But memory address is too general and hard to detect,
which in turns different pc has different memory address pointing to that program which is
~ Hope there's a guidance.
Suhrid Karthik wrote:You could run an external program from your Java code that can do the checking for you.
For e.g. your Java code can call the "ps" command on Unix or "tasklist" on Windows to check if an external program/process is running.
well sure, it's the alternative way out perhaps. I'm also thinking that way now...
But, it would be caught upon the UAC User Account Cridential... such as pop up asking permission under
latest windows... omg.
but anyway, Robprime gave us something else
I'm not sure if that's possible in Windows. I've done a bit of process programming in Windows itself, using PROCESSENTRY32, and the parameters are not part of that structure.