2122232425262728293031
int cmd, ret; cmd = Integer.parseInt(args[1]); if (cmd == 1) { ret = spremote.shutdownComputer(); if (ret == 0) System.out.println("Shutdown Success."); else System.out.println("Shutdown Failled."); }