This program watches for the Java instances that NetConsole uses. When NetConsole closes, the launcher then closes itself. This aids in Licensing issues with this product.
This program was written because my manager came to me asking if we could use licensing in some way to only allow a single instance of this app. I looked at the app, and found out that Startconsole.exe fires up, then launches Java, then closes itself. Well, this would release the license, and since this happens in a fraction of a second, NLS would do me no good for only allowing a single user into the app.
What I did is wrote an app that launches the Startconsole.exe, then watches for a new instance of Java. When it finds it, it records the PId of the instance. Since this app never closes, the license is never released, we can use NLS to allow only a single instance of the app to run.
This app could be easily modified to watch other such apps, not just NetConsole. The issue of launchers is common one, and this app could be used to help with these types of apps.