Guest User

Untitled

a guest
Apr 27th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. Runtime aplicacion = Runtime.getRuntime();
  2. try{
  3. aplicacion.exec("C:/Program Files (x86)/Apache Software Foundation/Apache2.2/bin/httpd.exe -k start");
  4. }catch(Exception e){
  5. System.out.println(e);
  6. }
  7.  
  8.  
  9. Runtime aplicacion = Runtime.getRuntime();
  10. try{
  11. aplicacion.exec("C:/Program Files (x86)/Apache Software Foundation/Apache2.2/bin/httpd.exe -k shutdown");
  12. }catch(Exception e){
  13. System.out.println(e);
  14. }
Add Comment
Please, Sign In to add comment