Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. # start the vm
  2. subprocess.call(["C:\Program Files\Oracle\VirtualBox\VBoxManage.exe", "startvm", "Win7-IE8"])
  3. time.sleep(50)
  4.  
  5. # stop a vm
  6. # -set inside the VM from the 'control panel->power options' the os to shutdown when the power button is pressed-
  7. subprocess.call(["C:\Program Files\Oracle\VirtualBox\VBoxManage.exe",
  8. "controlvm",
  9. "WIN7IE8",
  10. "acpipowerbutton"])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement