poidasmith / winrun4j

WinRun4J Java Application Launcher
http://winrun4j.sourceforge.net
212 stars 63 forks source link

Path to .exe #27

Closed anm43 closed 11 years ago

anm43 commented 11 years ago

What is the right way to find out the path to the .exe file in a Windows Service?

poidasmith commented 11 years ago

This is available from the INI class:

import org.boris.winrun4j.INI;

public class GetModuleFilenameTest
{
    public static void main(String[] args) throws Exception {
        System.out.println(INI.getProperty(INI.MODULE_NAME));
    }
}
anm43 commented 11 years ago

Sorry, somehow I missed this class.