1

I have a HTPC (Home theater PC) which has a THX Video that plays on start up. The video starts with WMP 12 and I have it set to play automatically and go to full screen automatically.

Problem is WMP (Windows Media Player) 12 doesn't support the /close argument so I am trying to create a batch file that will recognize the completion of the file "thx.mp4" and exit WMP.

Can anyone help me out with this?

HTPC Runs: Windows 7 Pro Windows Media Player

user2735805
  • 11
  • 1
  • 2
  • how should the batch recognize the end of the video? How do you do this from command line (without a script)?? I can maybe make a script for you, but I will **not** google for several options of obscure video players. – Endoro Aug 31 '13 at 20:18
  • Maybe the WMP closes handle over the `thx.mp4` file once it finished playing it. – Vlastimil Ovčáčík Aug 31 '13 at 21:02
  • 1
    The OP has to find out how his program works. This is not a batch programmer task. – Endoro Aug 31 '13 at 22:14

1 Answers1

0

You could install VLC and use that to play the intro:

@echo off
set "file=c:\path\thx.mp4"
start "" /w /max "c:\Program Files\VideoLAN\VLC\vlc.exe" "%file%" vlc://quit
foxidrive
  • 40,353
  • 10
  • 53
  • 68
  • Well in terms of how WMP works...I only know how the UI works. Programming is not my skill so in terms of how it works in the background, I don't know. I'll try the VLC player. I do have that. I'll let you know. I read this. http://stackoverflow.com/questions/6702856/close-a-running-application-from-dos-command-line . Someone got WMP to close from a batch file which recognized a MP3 or something. You guys know more than me. – user2735805 Sep 01 '13 at 02:07