Advertisement
clockworkpc

Script to launch Microsoft Word in a Windows 7 VM on Ubuntu

Feb 17th, 2013
496
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.59 KB | None | 0 0
  1. xdotool key ctrl+alt+Right && gnome-terminal -x virtualbox
  2.  
  3. xdotool key ctrl+alt+d
  4.  
  5. VBoxManage startvm "Windows 7"
  6.  
  7. VBoxManage guestcontrol "Windows 7" execute --image "C:\\Program Files (x86)\\Microsoft Office\\Office14\\WINWORD.exe" --username "<username>" --password "<password>" --verbose --wait-exit --wait-stdout
  8.  
  9. gnome-terminal -x xcowsay "Saving the machine state of this virtual machine.  I'll take you back to normal Ubuntu very shortly..."
  10.  
  11. VBoxManage controlvm "Windows 7" savestate
  12.  
  13. xdotool key ctrl+alt+Left
  14.  
  15. xcowsay "All done!"
  16.  
  17. killall VirtualBox
  18.  
  19. xdotool key ctrl+alt+d
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement