home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
HTPC Projects
HTPC Projects
Remote is dead after stand by/hibernate
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="skoov" data-source="post: 123386" data-attributes="member: 24844"><p>Then it might acutally be progra~2 rather than progra~1</p><p></p><p>Also I just thought about it and it should also me mediap~1.exe.</p><p></p><p>Probably the best thing to do is create a batch file with just one line:</p><p>c:\programmer\Team Mediaportal\Mediaportal\Mediaportal.exe</p><p></p><p>and then save it as something like:</p><p>c:\bats\mp.bat</p><p></p><p>and then in your script call that batch file instead:</p><p>WshShell.Run "c:\bats\mp.bat", 0</p><p></p><p>A bit of a long way round but should sort it <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p></p><p>OR try these lines instead:</p><p></p><p>Dim MyShell</p><p>Dim shell_cmd</p><p>shell_cmd = "c:\programmer\Team Mediaportal\Mediaportal\Mediaportal.exe"</p><p>set MyShell = CreateObject("WScript.Shell")</p><p>MyShell.Run shell_cmd, 1, 1</p><p></p><p>This is my first VB script, so I'm not too knowledgeable on the subject <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p></blockquote><p></p>
[QUOTE="skoov, post: 123386, member: 24844"] Then it might acutally be progra~2 rather than progra~1 Also I just thought about it and it should also me mediap~1.exe. Probably the best thing to do is create a batch file with just one line: c:\programmer\Team Mediaportal\Mediaportal\Mediaportal.exe and then save it as something like: c:\bats\mp.bat and then in your script call that batch file instead: WshShell.Run "c:\bats\mp.bat", 0 A bit of a long way round but should sort it :) OR try these lines instead: Dim MyShell Dim shell_cmd shell_cmd = "c:\programmer\Team Mediaportal\Mediaportal\Mediaportal.exe" set MyShell = CreateObject("WScript.Shell") MyShell.Run shell_cmd, 1, 1 This is my first VB script, so I'm not too knowledgeable on the subject :) [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
HTPC Projects
HTPC Projects
Remote is dead after stand by/hibernate
Contact us
RSS
Top
Bottom