osa
22-06-2007, 17:48
Salve vorrei ottenere il pid di un processo che mando in esecuzione.
Per avviare un programma uso questi comandi:
Runtime runtime=Runtime.getRuntime();
Process process=runtime.exec("nome_programma");
La classe Process non contiene un metodo per ottenere il PID. Sapete aiutarmi??
Per avviare un programma uso questi comandi:
Runtime runtime=Runtime.getRuntime();
Process process=runtime.exec("nome_programma");
La classe Process non contiene un metodo per ottenere il PID. Sapete aiutarmi??