Devi usare il comando exec di Runtime che equivale a system, ecco un esempio:
-----
...
try {
Runtime.getRuntime().exec("NET SEND " + utente + " " + ip + " " + messaggio);
} catch(Throwable t) {
//prende eccezioni ed errori
}
...
-----
come vedi il concetto ? lo stesso che usavi in C.
dciao
Ultima modifica effettuata da netarrow il 05/07/2005 alle 20:19 |