poidasmith / winrun4j

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

Any way to get exe name? #62

Open ghost opened 10 years ago

ghost commented 10 years ago

Shouldn't there be some way of telling the path to exe file?

probably usable with arg.1 = $EXE

or something like that?

neandrake commented 10 years ago

This might be nice to have WinRun4J set some system variables about the execution environment a la:

-Dwinrun4j.exepath=
-Dwinrun4j.pid=
poidasmith commented 10 years ago

This should already be possible. Look at the class org.boris.winrun4j.INI. For example you can do INI.getProperty(INI.MODULE_NAME );