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
MediaPortal 1
Support
Electronic Program Guide
WebEPG
webepg and MP
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="zombiepig" data-source="post: 90010" data-attributes="member: 12049"><p>ok, here's the script:</p><p></p><p>[CODE]set Services = getobject("winmgmts:root\cimv2")</p><p>Set oProcess = Services.Get("Win32_Process") </p><p></p><p>strQuery = "select * from win32_process where name ='mediaportal.exe'"</p><p>Set Procs = Services.ExecQuery( strQuery )</p><p></p><p>for each proc in Procs</p><p> proc.Terminate()</p><p>next </p><p></p><p></p><p>Set WshShell = WScript.CreateObject("WScript.Shell")</p><p>Return = WshShell.Run("C:\Progra~1\Teamme~1\MediaP~2\WebEPG.exe", 0, true) </p><p></p><p></p><p>WshShell.Run "C:\Progra~1\Teamme~1\MediaP~2\mediaportal.exe" [/CODE]</p><p></p><p>It'll need customizing if you want it to work - specifically the path to mediaportal. I could only get it to run using shortened folder name for whatever reason, so you have to make sure the two C:\Progra~1\Teamme~1\MediaP~2\ lines are correct for your system. </p><p>Then I simply schedule a "wscript.exe updateguide.vbs" command to run each day when i'm at work <img src="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7" class="smilie smilie--sprite smilie--sprite1" alt=":)" title="Smile :)" loading="lazy" data-shortname=":)" /></p><p>Hope it's of use!!</p></blockquote><p></p>
[QUOTE="zombiepig, post: 90010, member: 12049"] ok, here's the script: [CODE]set Services = getobject("winmgmts:root\cimv2") Set oProcess = Services.Get("Win32_Process") strQuery = "select * from win32_process where name ='mediaportal.exe'" Set Procs = Services.ExecQuery( strQuery ) for each proc in Procs proc.Terminate() next Set WshShell = WScript.CreateObject("WScript.Shell") Return = WshShell.Run("C:\Progra~1\Teamme~1\MediaP~2\WebEPG.exe", 0, true) WshShell.Run "C:\Progra~1\Teamme~1\MediaP~2\mediaportal.exe" [/CODE] It'll need customizing if you want it to work - specifically the path to mediaportal. I could only get it to run using shortened folder name for whatever reason, so you have to make sure the two C:\Progra~1\Teamme~1\MediaP~2\ lines are correct for your system. Then I simply schedule a "wscript.exe updateguide.vbs" command to run each day when i'm at work :) Hope it's of use!! [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
Support
Electronic Program Guide
WebEPG
webepg and MP
Contact us
RSS
Top
Bottom