I would like to know if it is possible to get from code the command used to launch a java program.
E.g. if I launch a java program with:
java -cp li
In the task manager on Win2003 you can enable the display of a column that displays the command like it does on linux. Or, you can do it from the command line like so:
wmic.exe PROCESS where "name like '%java%'" get Processid,Caption,Commandline