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
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
How best to keep Moving Pictures databases in sync across multiple clients?
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="RoChess" data-source="post: 552497" data-attributes="member: 18896"><p>For #2, you can use a batch file to verify if MediaPortal is still running, and if it is, to close it.</p><p></p><p>[code]</p><p>@Echo Off</p><p>REM Close MediaPortal in a nice way first</p><p>tasklist | find /i /c "MediaPortal.exe" &&taskkill /im "MediaPortal.exe" /t</p><p>REM Add in a 30 second delay to allow MediaPortal to close itself</p><p>ping 1.0 -n 1 -w 30000</p><p>REM If MediaPortal did not close nicely then it will have to be forced (this could lead to corruption in rare situations)</p><p>tasklist | find /i /c "MediaPortal.exe" &&goto KillForced</p><p>goto EndBat</p><p></p><p>:KillForced</p><p>REM You could ask an "Are you sure" question to soften the impact and allow an abort</p><p>REM For RDP use, this forced method will always be needed</p><p>taskkill /f /im "MediaPortal.exe" /t</p><p></p><p>:EndBat</p><p>[/code]</p></blockquote><p></p>
[QUOTE="RoChess, post: 552497, member: 18896"] For #2, you can use a batch file to verify if MediaPortal is still running, and if it is, to close it. [code] @Echo Off REM Close MediaPortal in a nice way first tasklist | find /i /c "MediaPortal.exe" &&taskkill /im "MediaPortal.exe" /t REM Add in a 30 second delay to allow MediaPortal to close itself ping 1.0 -n 1 -w 30000 REM If MediaPortal did not close nicely then it will have to be forced (this could lead to corruption in rare situations) tasklist | find /i /c "MediaPortal.exe" &&goto KillForced goto EndBat :KillForced REM You could ask an "Are you sure" question to soften the impact and allow an abort REM For RDP use, this forced method will always be needed taskkill /f /im "MediaPortal.exe" /t :EndBat [/code] [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
MediaPortal 1
MediaPortal 1 Plugins
Popular Plugins
Moving Pictures
How best to keep Moving Pictures databases in sync across multiple clients?
Contact us
RSS
Top
Bottom