If your file extension of choice, (for music in this case) is set to your chosen program, all you need to do is to set the Task scheduler to run the mp3 file. The .bat file is completely unnecessary with media files.
Hey thanks a lot for the tutorial! In addition to just playing the music file, I used nircmd to gradually increase the volume at small intervals until I press a key...perfect for mornings!
@dlopes381 sure..I couldn't find a way to natively change system volume using batch programming. So, I used nircmd command line utility which is very easy to use and doesn't need installation. In my batch script, I set the volume level using nircmd to a preset value and started playing the song. Then, I used a FOR loop for increasing the volume in increments using nircmd..
@robinmitra1 I let the script wait for user input for a few seconds before increasing the volume further when the user doesn't press anything and shutting down windows media player when the user presses the required key. But running the script as a scheduled task doesn't display the console window (cmd), which defeats the whole purpose of user input. Therefore, this forces me to use the task manager to kill the script and windows media player manually. Let me know if u know a solution to this..
too complicated... too tired :( lol my friend borrowed my ipod i ussually just use an app on my ipod but yeah.. night who ever is lame enough to read this.. lol jk
@XxxnnnLi Works for me..mine starts Windows Media Player..this method will open the "default" player associated with the media you are trying to open.
It did not work for me. Granted I am using a pc so I had to schedule my task a bit differently, but I got the music to play when I click on the file, but it won't play even though I scheduled it to. Thanks though!
Only problem with this is you made it too complicated changing directories all you have to do is copy the file path paste it into notepad add a \ at the end and paste the filename then enclose in double quotes or to use the example from your computer it should look like:
"c:\Documents and Settings\GOD\My Documents\My Music\iTunes\iTunes Music\Santeria.m4a"
Awesome it totally works and I found a way to start a specific playlist instead of just one song. ^-^ I know probably some other people have figured that out too but w/e it's still a win!
You can actually just go into "Scheduled Tasks" and search the music file up directly and have it set to play the music file whatever time you want. So that way you don't have to make a batch or executable file. It's all supplied for you already :p but this video did help me find out about the "Scheduled Tasks" feature and i just played around with it and figured this out. Thank you so much!
i use a free program WakeupOnStandBy to do this, its a bit easier. I use Foobar to play my music, and have it launched like "foobar.exe /rand" so i get a random song from my current playlist when I wake up.
@OJmastersz Yes this really works on all Windows based operating systems. However you may have to modify the code in vista or 7 but the concept is still the same. It shouldn't be that difficult. If you have any problems ask and I'll try my best to help you!
If your file extension of choice, (for music in this case) is set to your chosen program, all you need to do is to set the Task scheduler to run the mp3 file. The .bat file is completely unnecessary with media files.
VideoGuyNC 9 hours ago
Hey thanks a lot for the tutorial! In addition to just playing the music file, I used nircmd to gradually increase the volume at small intervals until I press a key...perfect for mornings!
robinmitra1 2 weeks ago
@robinmitra1 that's pretty interesting. Mind sharing how?
dlopes381 2 weeks ago
@dlopes381 sure..I couldn't find a way to natively change system volume using batch programming. So, I used nircmd command line utility which is very easy to use and doesn't need installation. In my batch script, I set the volume level using nircmd to a preset value and started playing the song. Then, I used a FOR loop for increasing the volume in increments using nircmd..
robinmitra1 6 days ago
@robinmitra1 I let the script wait for user input for a few seconds before increasing the volume further when the user doesn't press anything and shutting down windows media player when the user presses the required key. But running the script as a scheduled task doesn't display the console window (cmd), which defeats the whole purpose of user input. Therefore, this forces me to use the task manager to kill the script and windows media player manually. Let me know if u know a solution to this..
robinmitra1 6 days ago
too complicated... too tired :( lol my friend borrowed my ipod i ussually just use an app on my ipod but yeah.. night who ever is lame enough to read this.. lol jk
bry252123 1 month ago
Great vid! Thank you!
malixian 1 month ago
didnt work for me... do you have to use itunes? I use vlc player as my default and i used a flac music file. did i do anything wrong?
XxxnnnLi 1 month ago
@XxxnnnLi Works for me..mine starts Windows Media Player..this method will open the "default" player associated with the media you are trying to open.
robinmitra1 2 weeks ago
It did not work for me. Granted I am using a pc so I had to schedule my task a bit differently, but I got the music to play when I click on the file, but it won't play even though I scheduled it to. Thanks though!
mybradyboo 2 months ago
hey i did this but i used a small 30 second file with windows media player, how would i make it repeat a certain number of times?
papercut272 3 months ago
thanks worked fine.
minerslave4 3 months ago
this is awesome! this is the kinda video that should be getting millions of views
kunaiknife74506 3 months ago
Only problem with this is you made it too complicated changing directories all you have to do is copy the file path paste it into notepad add a \ at the end and paste the filename then enclose in double quotes or to use the example from your computer it should look like:
"c:\Documents and Settings\GOD\My Documents\My Music\iTunes\iTunes Music\Santeria.m4a"
benjnse 4 months ago in playlist a prog
Hail Mary.
I found god and I saw his harddisc. :D
God uses iTunes.
Monitorreiniger 4 months ago 2
@Monitorreiniger lmao!
robinmitra1 2 weeks ago
Thanks a lot buddy! this works perfect!
aditya2004 5 months ago
Are you calling me a batch?
kennethrulez 5 months ago 3
@kennethrulez LOL
ItsMeCheeto 4 months ago
Does this works for Wndows 7?
WondererSeeker 5 months ago
@WondererSeeker
I also have Windows 7 and it doesn't work when my computer is on "sleep" or "hibernate"... what am I doing wrong? TY
ItsMeCheeto 4 months ago
@ItsMeCheeto in the task scheduler edit the task and under the conditions tab check Wake the computer to run this task
benjnse 4 months ago
i know what im waking myself up to on FRIDAY, FRIDAY, GETTIN "UP" ON FRIDAY. classic usage to word play. gettin "up" instead of "down" HA
4WildSnorlax 5 months ago 2
how do you put the time u want it to wake u up at
bearhooker 5 months ago
Great tutorial
Great song choice
Now I can wake up in time for practice! haha
JhacobRevisited 6 months ago
Thanks
MrFrenkis 6 months ago
How can I run it for a complete iTunes playlist ?
rafilo007 7 months ago
@rafilo007
You will need to open Itunes and right click on the playlist you want and export it as a m3u file.
Than all you have to do is create the batch file to launch the new .m3u file instead of the mp3.
Itunes should open, launching the playlist.
Hope this helps, if you need more help feel free to ask
dlopes381 7 months ago 2
Thank you so much! I am wary about download random programs for an alarm clock. This was easy and virus free!
Killian286 7 months ago
thanks
IpodTouchSyndicate 8 months ago
thanks!! i was worried about downloading a software
Ant2Fresh 9 months ago
instead of using bat to exe converter in the search bar on your desktop e.g click start and type iexpress and use that
Xbox360Playas 10 months ago
Awesome it totally works and I found a way to start a specific playlist instead of just one song. ^-^ I know probably some other people have figured that out too but w/e it's still a win!
vickybandlover 10 months ago
@vickybandlover Glad I could help you out! If you have any questions feel free to ask. I will do my best to help you.
dlopes381 10 months ago
thank you
now i can set the wake up song from inception for my alarm :D
LOLaZnWaFfL3S 11 months ago
You can actually just go into "Scheduled Tasks" and search the music file up directly and have it set to play the music file whatever time you want. So that way you don't have to make a batch or executable file. It's all supplied for you already :p but this video did help me find out about the "Scheduled Tasks" feature and i just played around with it and figured this out. Thank you so much!
DsGju1c3ba9 1 year ago
Thanks bro, this helped wake my ass up lol
rookie2511 1 year ago
doesn't work for me: access denied
SuperRockingMrMagic 1 year ago
can it work on a windows media player file? like with video and music? ok im gonna try it.
GhostInTheShell09 1 year ago
now i just need to find a way to have my computer start up and do this in the morning >_>
NobodyMetal 1 year ago
@NobodyMetal visit my channel there is a video on there that uses a computer program and it might just do what you are wanting.
dlopes381 11 months ago
wow, this was actually awesomely fast, and you show how to do it perfectly..
I feel like I could make all sorts of batch files now THANKS :)
drrydog 1 year ago
i use a free program WakeupOnStandBy to do this, its a bit easier. I use Foobar to play my music, and have it launched like "foobar.exe /rand" so i get a random song from my current playlist when I wake up.
boukeversteegh 1 year ago
@boukeversteegh I posted a video about the program a while back you can see it here if you click on my other videos
Thanks for the support
dlopes381 1 year ago
dude this is awsome !!!!!! and so helpful 5 stars!
25mars 1 year ago
does it really work?
OJmastersz 1 year ago
@OJmastersz Yes this really works on all Windows based operating systems. However you may have to modify the code in vista or 7 but the concept is still the same. It shouldn't be that difficult. If you have any problems ask and I'll try my best to help you!
dlopes381 1 year ago
@dlopes381 can i connect itunes radio so that i can use it like a radio alarm?
shenaznainarulz 1 year ago
@dlopes381 What kind of modifications do I have to do to get it working on Windows 7?
sempie13 11 months ago
@sempie13 the code should be just like the one below
@echo off
cd /d C:\Users\Admin\Desktop
"2 Pac - Tupac Shakur - Untill The End Of Time.mp3"
the first line tells the computer to turn echo off so that nothing is displayed on the screen
the second line changes the directory to where the song is located. This will be different on everyone's computer.
the third line tells the computer to run the file: make sure you have the song and extension in "quotes"
dlopes381 11 months ago
Thank you so much!!!!!!!!
rawbabymama 1 year ago
doesn't work for Vista
lilslant 1 year ago 2
good look man
mirandacosgrovehot1 1 year ago
Thanks.
v0lc0mst0n3 2 years ago
Thanks! Works 100% and it sure beats paying for a program the does the same thing.
dilldb 2 years ago 6
nice vid thx buddy
Mystjcluv 2 years ago 3
This is really amazing .. thanks a lot
BobSacamano1214 2 years ago 3
very cool. this was exactly what i was looking for.
Akoa0013 2 years ago 3
Thank you!!!
Richie2k6 2 years ago 3
that is so cool awesome i need to do it to wake my ass up tomozzzzz lol
XxELiTeGLiTcHeRsxX 2 years ago 6