guest:windows xp sp2
virtualbox:4.3.10
guestaddition:4.3.10
python:2.7.6(64 bit)
when i execute this code, something wrong in the code guestSession.processCreat(), because i can print guestSession.id
report a error "session is not in started state"
Code: Select all
vbox = win32com.client.Dispatch("VirtualBox.VirtualBox")
session = win32com.client.Dispatch("VirtualBox.Session")
mach = vbox.findMachine("wxp")
mach.lockMachine(session,1)
console = session.console
guest = console.guest
guestSession = guest.createSession("LI","","","vboxshell guest exec")
process = guestSession.processCreate("notepad.exe","C:\\Documents and Settings\\LI\\test.txt",0,1,0L)
session.UnlockMachine()