Hello all, I'm new to the forum and would really appreciate some help in writing code to remotely shutdown another laptop. Here is the code so far:
import java.io.IOException; class remoteSD { public static void main(String[] args) throws IOException { Runtime.getRuntime().exec("shutdown /s /m <comp name here>); } }
I get no errors but nothing happens... What exactly am I doing wrong? Any help would be greatly appreciated.