Skip to content

Instantly share code, notes, and snippets.

@mike-zhang
Created Dec 11, 2012
Embed
What would you like to do?
实现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