Ok so i need some help, here is what i have
HTPC/Server has a VM on it that i need running, then i want XBMC starting with windows, so i have this batch file i made that starts the VM and closes some Defender window etc
Now, the problem is that even with the waiting from the ping, the VM it goes ontop of XBMC, sometimes the VM starts late because it has to start all over again. If the VM where to suspend before shutting down it would solve everything.Code:@echo off TASKKILL /F /IM MSASCui.exe /T "C:\Program Files (x86)\VMware\VMware Workstation\vmrun.exe" -T ws start "D:\Documents\WMware\Windows 7.vmx" PING 1.1.1.1 -n 1 -w 10000 >NUL "C:\Program Files (x86)\XBMC\XBMC.exe"
So i went into the Local Group Policy Editor and made a shutdown script that looks like this
But that doesn't work AT ALL.Code:@echo off cls for /R "D:\Documents\VMware" %%f in (*.VMX) do "C:\Program Files (x86)\VMware\VMware VIX\vmrun.exe" suspend "%%f" shutdown -s
Does anyone know how i would go about getting it to suspend on shutdown? i have googled it 100 times and not got any further.
Another Solution would be for XBMC to stay ontop of everything at all costs, but i cant seem to get that to work either
Or for VMware to not steal focus


LinkBack URL
About LinkBacks
Reply With Quote