Strange error the first time MediaPortal starts after a Windows boot (1 Viewer)

ErikLarsson

Portal Pro
May 9, 2006
57
4
I'd like some more help on the vbscript:

Dim oShell
Set oShell=CreateObject("WScript.Shell")
WScript.Sleep 2000
oShell.Run("c:\Path\To\MediaPortal\MediaPortal.exe ")
Set oShell=Nothing

Since my Mediaportal install in located in "Program Files", i cannot run the script.

If i point to any path without spaces in it, it works. I cannot point to a shortcut. If i escape the " by doing """, i get a small commmand promt that is empty.

Can someone rewrite this so it works with spaces in the path?
 

igalan

Retired Team Member
  • Premium Supporter
  • June 30, 2005
    406
    20
    Barcelona
    Home Country
    Spain Spain
    oShell.Run("""c:\Program Files\Team MediaPortal\MediaPortal\MediaPortal.exe """)

    Or use short names instead:

    oShell.Run("c:\Progra~1\TeamMe~1\\MediaPortal\MediaPortal.exe ")
     

    ErikLarsson

    Portal Pro
    May 9, 2006
    57
    4
    I got the same message now when i updated from 7.x to 7.12 ati drivers.

    I tried to disable MP from starting at boot, but i still get the error.
     

    Users who are viewing this thread

    Top Bottom