Skip to content

Instantly share code, notes, and snippets.

@mike-zhang
Created December 11, 2012 03:26
Show Gist options
  • Save mike-zhang/4255695 to your computer and use it in GitHub Desktop.
Save mike-zhang/4255695 to your computer and use it in GitHub Desktop.
实现vBox虚拟机启动和休眠
启动:
VBoxManage startvm CentOS6.3_64 -type vrdp
vbs代码:
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c VBoxManage startvm CentOS6.3_64 -type vrdp",vbhide
休眠:
VBoxManage controlvm CentOS6.3_64 savestate
vbs代码:
Set ws = CreateObject("Wscript.Shell")
ws.run "cmd /c VBoxManage controlvm CentOS6.3_64 savestate",vbhide
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment