Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm using Windows Media Player 12 (bundled with Windows 7 RC). I'd like to start it and play a portion of a WMV file at a particular time offset - say 3 minutes into the movie.

This is for demonstration purposes - I'd like to play a segment of the movie, but don't really want to fluff around with the media player controls while I'm in front of my audience.

Is this possible? Are there command line parameters?

Similarly, but less important, can I automatically stop playback after X minutes.

If all else fails, I guess I'll just edit the movie and playback a segment of it :-)

share|improve this question
up vote 10 down vote accepted

You can use an ASX file. Save the following content to "myfile.asx", adjusting the start time, duration and file name according to your needs. Then, open the ASX file in WMP:

  <Asx Version = "3.0"> 
     <StartTime value = "00:25:00.000" />
     <Duration value = "00:15:00.000" />
     <Ref href = "sample.avi" />

I don't have Windows 7 here to test it, but it works fine in XP and Vista.

share|improve this answer
awesome. nice work! – Brian Jul 24 '09 at 16:56
Works perfectly. Thanks! – dariom Jul 24 '09 at 17:49

I usually go for the queue-up-then-minimize approach, but out of the box I don't believe there's any other way to do it.

share|improve this answer

You can do some things with the command line But, nothing to do with timing.

There is an SDK and an API, so I'm sure you could write something, but that would possibly be more trouble than it's worth.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .