When I connect to my media PC using LogMeIn Free, Windows 7 Media Center shuts down because it doesn't work over a remote desktop connection. This isn't too much of a problem for me as it's the same with Microsoft's Remote Desktop.
In order to get around this limitation with Microsoft's Remote Desktop, I use the following batch file to kill RDP (Remote Desktop Protocol), wait a moment and then re-start Windows Media Center:
tscon RDP-Tcp#0 /dest:console
ping -n 5 localhost > NUL
RunDLL32.exe C:\Windows\ehome\ehuihlp.dll,BootMediaCenter
The problem is that it doesn't work with LogMeIn Free as the session isn't killed/disconnected. Of course I could just run it and then close the window very fast, but that isn't ideal.
Is there a line I can add into this batch file which will also kill LogMeIn Free if it is connected?