- 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?
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?