Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

migrated from serverfault.com Mar 9 '11 at 21:00

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

2 Answers

up vote 4 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
1  
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
add comment

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.