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

How can I launch Windows Media Player or iTunes, playing a song, with the Windows task scheduler.

I already know how to create a task and how to trigger it at a given time (launching iTunes / WMP).
But not how to automatically start playing music.

Can someone help me please?

share|improve this question

migrated from Mar 9 '11 at 21:00

This question came from our site for system and network administrators.

up vote 5 down vote accepted

Open your Task Scheduler and choose

create basic task

Give the task a name and description and push next

For Trigger choose the option that suits your needs (this one should be self explanitory) Daily at 8:00 AM for example.

For action choose "Start a Program" and choose your MP3 file you want to wake up to

Finish the task.

Test it by running it manually.

I would recommend using Windows Media Player as your default media player to enable it to open when the .MP3 is called. I am unsure if iTunes will play the song as soon as you open it. I can confirm Window Media Player did as I just did a test myself.

share|improve this answer
I guess OP would also have to disable any feature that hibernates/turns the computer off after n minutes of inactivity. – FrustratedWithFormsDesigner Mar 9 '11 at 21:44
yes indeed, I did it. worked fine, thanks a lot :) – kite Mar 10 '11 at 7:00
Glad to help. and +1 to Frustrated for his addition. Thanks! – Campo Mar 10 '11 at 14:24

You need to pass the path to the music file you want to play as an argument when setting up the scheduled task.

So, instead of starting itunes.exe you will start itunes.exe "c:\mymusic\song.mp3"

Alternatly you can just specify the music file as the target of the scheduled task and let it figure out what to do, but then it will load your default music player, which may or may not be what you want.

share|improve this answer

If you want to schedule more than one music file with Windows Media Player, then create a new task and set up your trigger type toon schedule.

As action, select Start a program and insert the following


"%ProgramFiles(x86)%\Windows Media Player\wmplayer.exe"

Add arguments (optional):

"D:\MyMusic\My File1.mp3" "D:\MyMusic\My File2.mp3"

Add as many mp3 files as you want. There seems no limit at 255 characters for the arguments list.

share|improve this answer

You must log in to answer this question.

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