how to detect program is running in my computer.
etc: i have open my program application name is myProgApp, in computer jhon, so if i open again the program that in computer jhon will show message 'file already open' .
thanks, for your help.
I am assuming here that you are talking about your Java application. When starting the application, bind it to any port which is not currently in use. That way when you try to create another instance of your application, you would get a socket exception saying that he port is already in use.
public class SingleApplicationInstance
public static void main(String args)
ServerSocket ss = new ServerSocket();
catch (SocketException e)
System.out.println("Application already running");
System.out.println("Application encountered some problem.");
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...