A simply schedule, but how?

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
fgatto
Posts: 1
Joined: 17 Sep 2014 08:33

A simply schedule, but how?

#1 Post by fgatto » 17 Sep 2014 08:39

Hi all, i'm new here.
I'm not very good with batch scripts. I'm writing a simply batch script for schedule two tasks:
1. first, i have to play a video in windows media player;
2. after the video with win media player finishes, i want to open a page with chrome.

The two istructions to do that are very easy, no problem. But i don't know how to open chrome (2.) ONLY after (1.) finishes. I tried with /W, but it works not for me, because it doesn't close the window media player window, so does not automatically open chrome.

Any suggest?
Thank you very much, and sorry for my bad english.

Compo
Posts: 600
Joined: 21 Mar 2014 08:50

Re: A simply schedule, but how?

#2 Post by Compo » 17 Sep 2014 09:39

Unfortunately Windows Media Player was designed not to be able to close after playing.

The usual solution is to use a 3rd party player product.

foxidrive
Expert
Posts: 6031
Joined: 10 Feb 2012 02:20

Re: A simply schedule, but how?

#3 Post by foxidrive » 17 Sep 2014 10:18

Different versions of Windows Media Player have different command line options.

Older versions used to support a play and a close switch.

Post Reply