Is it possible to run a batch file when exiting MediaPortal? (1 Viewer)

mad zero

Portal Member
February 18, 2009
9
0
Home Country
Germany Germany
Hello,

I am using my regular desktop computer as HTPC, which is basically working fine with this configuration:
  • MS Windows 7 Home Premium 64 Bit
  • ATI Radeon HD4870 (with Catalyst 10.2)
  • 22" LCD monitor (connected per DVI)
  • 42" LCD HDTV (connect per HDMI)
  • Logitech Harmony 700 (with MCE remote compatible IR receiver)
  • MediaPortal 1.0.5

It's working fine to switch the video output to my HDTV and run MediaPortal by using the Harmony remote. But I'd also like to switch the video output back to my desktop LCD display when exiting MediaPortal.

ATI Catalyst allows to do this by running a desktop shortcut / batch file (this is how I switch to the HDTV and launch MediaPortal). But does MediaPortal offer to run a script or batch file when exiting the application?

Kind regards,
Dennis
 

tourettes

Retired Team Member
  • Premium Supporter
  • January 7, 2005
    17,301
    4,800
    Just create a .bat file with

    1) start MP
    2) do stuff that you want to do after exit

    Bat execution is blocked as long as MP is running, so point 2 will be executed after MP exits.
     

    mad zero

    Portal Member
    February 18, 2009
    9
    0
    Home Country
    Germany Germany
    I'll give it a try. Thanks for the response.

    Kind regards,
    Dennis

    Sweet, it's working like a charm! Never supposed it would be that easy. Thanks a lot for your help. :)
     

    Users who are viewing this thread

    Top Bottom