public static void main(String[] args) {
try {
Process pc = Runtime.getRuntime().exec("net send 127.0.0.1 teste");
DataInputStream dis = (DataInputStream) pc.getInputStream();
String linha;
while( (linha = dis.readLine()) != null){
System.out.println(linha);
}
} catch (IOException e) {
e.printStackTrace();
}
}
The message alias could not be found on the network.
More help is available by typing NET HELPMSG 2273.
mas na minha aplicação nao aparece nada e estou tentando capturar essa mensagem mas nao consegui como faço para pegar a mensagem q e enviada e mostrar na tela?
Valeu