C
Chris Clark
I want to be able to get a list of processes running (Windows XP) and
see if my process (a Java App) is running on my system. If it is not
running I can just supply command line arguments to make my program
open up with a specific file, but in the case where I already have an
instance of my program open I want to continue to have just that one
instance. With the process id of my java program running, I then want
to be able to send it a message to open a file in the existing
instance of the program running, and not open a new instance of it. By
doing this i will just be able to send it my file and it will open in
my java program that is already open.
I know this is possible in C#, but I'm working with java and I'm not
sure if you can get a list of processes and send around a window's
handle so I can send it a message to open the specific file. This
feature is similar to many other apps that make it so files only open
in one window, so there aren't multiple instances floating around.
I hope I made sense.
Thanks,
Chris
see if my process (a Java App) is running on my system. If it is not
running I can just supply command line arguments to make my program
open up with a specific file, but in the case where I already have an
instance of my program open I want to continue to have just that one
instance. With the process id of my java program running, I then want
to be able to send it a message to open a file in the existing
instance of the program running, and not open a new instance of it. By
doing this i will just be able to send it my file and it will open in
my java program that is already open.
I know this is possible in C#, but I'm working with java and I'm not
sure if you can get a list of processes and send around a window's
handle so I can send it a message to open the specific file. This
feature is similar to many other apps that make it so files only open
in one window, so there aren't multiple instances floating around.
I hope I made sense.
Thanks,
Chris