I am running a exe through java runtime api
Process process = runTime.exec("cmd.exe /c start abc.exe "+Id, null, new File("D:/My"));
and retrieving the process id using jna like this -
Kernel32.INSTANCE.GetProcessId((Long) f.get(process));
but the process id return is not of abc.exe but of cmd.exe ..... i need the process id of abc.exe . Do not know how to get that can anyone help.