How to shut down pc in lan?
Closed
deepa
-
Mar 14, 2009 at 04:05 AM
d.hame35 Posts 9 Registration date Tuesday March 10, 2009 Status Member Last seen June 10, 2009 - Mar 15, 2009 at 04:46 AM
d.hame35 Posts 9 Registration date Tuesday March 10, 2009 Status Member Last seen June 10, 2009 - Mar 15, 2009 at 04:46 AM
Related:
- How to shut down pc in lan?
- Bandlab for pc - Download - Musical production
- My cute roommate pc - Download - Adult games
- How to type @ on pc - Guide
- Wake up pc on lan - Guide
- How to download nfs most wanted 2005 in pc for free - Download - Racing
1 response
d.hame35
Posts
9
Registration date
Tuesday March 10, 2009
Status
Member
Last seen
June 10, 2009
1
Mar 15, 2009 at 04:46 AM
Mar 15, 2009 at 04:46 AM
Hello,
Well I have tried that one in Java and it works but I dont know if it does work in LAN:
import javax.swing.JOptionPane;
public class shutdown{
public static void main(String[] args){
try{
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("cmd /c shutdown -s");
} catch (Exception ew){
JOptionPane.showMessageDialog(null, ew.toString());
ew.printStackTrace();
}
}
}
Well I have tried that one in Java and it works but I dont know if it does work in LAN:
import javax.swing.JOptionPane;
public class shutdown{
public static void main(String[] args){
try{
Runtime rt = Runtime.getRuntime();
Process pr = rt.exec("cmd /c shutdown -s");
} catch (Exception ew){
JOptionPane.showMessageDialog(null, ew.toString());
ew.printStackTrace();
}
}
}