Windows 7 Forums
Welcome to Windows 7 Forums. Our forum is dedicated to helping you find support and solutions for any problems regarding your Windows 7 PC be it Dell, HP, Acer, Asus or a custom build. We also provide an extensive Windows 7 tutorial section that covers a wide range of tips and tricks.


Windows 7: Schedule a task

05 Jun 2011   #1

Windows 7 32
 
 
Schedule a task

I want the computer to execute the following line:

mms://wamu-wm.streamguys.com/WAMU-1

at 7:00 am until 10 am Monday through Friday. Unconditionally.

I have explored the task menus ad-nausium... and still it does not trigger. There are simply too many options to list them here to explain what I could have done to try to get this to work. I do not get any errors indicating that something is wrong.

The "Missing Manual" did not help.

How can I do this?

My System SpecsSystem Spec
.

05 Jun 2011   #2

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

You need to create a playlist for this stream (or download one from attachment) and then create a task "Start a program" with this file.

Since the task can only be auto-stopped in 30min, 1,2,4,8,12 hours or 1, 3 days you need to create another task which would kill your music at 10 am.

You can do that with BATch script( To execute the file it must be saved with a .bat extension in plain text format with a program like Notepad).
Code:
taskkill /im wmplayer.exe
Of course you need to make sure that playlist is assigned to the program you are playing your music in and in batch script instead "wmplayer.exe" you have exe name of same program (vlc.exe, winamp.exe etc.)

As for Task Scheduler itself - you just need to Click Create Task, name it in General tab, go to Triggers tab and create a new trigger where you specify days and time, then in Actions tab, create a new action - start a program or script.


Attached Files
File Type: zip Playlist.zip (196 Bytes, 28 views)
My System SpecsSystem Spec
19 Nov 2011   #3

Windows 7 32
 
 
Working this on and off for a while now,...

I have to admit, mostly off though (-: I use Task Scheduler to play radio programs using various URLs.

Here are some quirks though: When listening to a program triggered by the task scheduler, it sounds as if I am listening to Max Headroom. I get, I get I get repetitions of phrases at times especially if I am also using the computer for other reasons. It sounds like a CD skipping. For example, if I load Outlook to send an e-mail message, the repeats happen continuously as it is loading and stop when the program is loaded. The effect stops when no activity is going on. While typing this message, some of this audio jitters have happened. Interesting enough, if I let this go on for a lot of time, the broadcast gets delayed from the time of the original broadcast. When the time is announced, what I am listening to can off as much as 5 minutes from actual time. I doubt that I am losing anything but just slowing things down. This does not seem to be noticeable if I trigger the radio directly from the icon.

Thoughts appreciated on where/how to fix this...
My System SpecsSystem Spec
.


23 Nov 2011   #4

Windows 7 32
 
 
Same comment, condensed...

In a nut shell: Apparently events in the task Scheduler have a very low priority. Therefore when playing an audio event, such as on-line radio, it gets interrupted many times when something else is loading. It sounds as if Max Headroom is narrating the show (-: Under General I do have the option Run With Highest Privileges checked. This shows up if the event is scheduled through the task scheduler but not if I run the same instruction using an icon without the scheduler. Is there some other option to use, either within the scheduler or without, that will give these events a higher priority? (How do I enable HTML here? I tried the GT/LT above.)
My System SpecsSystem Spec
19 Jan 2012   #5

Windows 7 32
 
 
Why is it?

I have questions in how to weed out errors in the use of the task Scheduler but this web site is prevent it. It seems that the more technical the forum, the more work I have to do to baby the text to keep it from becoming a single paragraph blob of unreadable text. Is there a hidden switch here or do I have to enter HTML text all over the place? What happened to "What I type is what you get." that other web sites have?
My System SpecsSystem Spec
20 Jan 2012   #6

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

I would try to start a bat file with the command in it:
Code:
start /high '<command>'
Basically, Task Scheduler will start a bat file, and bat file will start a program with high priority.
(I haven't tried that myself, gotta run now)

As for "what you see is what you get" post editing in this forum, please go to Forum Control Panel/ Edit Options, scroll all the way down to subsection Miscellaneuous Options - Message Editor Interface and choose your type
- Basic, Standard, Enhanced.
My System SpecsSystem Spec
20 Jan 2012   #7

Windows 7 32
 
 

Good Stuff, the command does help. Meanwhile, I have enhanced enabled. WYSIWYG to me says that way I type it is the way you get it. Am I still doing something wrong? Not a loss though, I now have newest on top set.
My System SpecsSystem Spec
20 Jan 2012   #8

Windows 7 32
 
 

Quote   Quote: Originally Posted by Neutron16 View Post
I would try to start a bat file with the command in it:
Code:
start /high '<command>'
Basically, Task Scheduler will start a bat file, and bat file will start a program with high priority.
(I haven't tried that myself, gotta run now)

.
Ok, I have used this in batch files with good results but the original problem exists. Here is what I have done:

Open the Task Scheduler and create a Basic Task. In Actions, I copy/paste the target from the Icon. When I save the setting, the scheduler asks me if I want change something to an argument. It looks like it separates the use of iexplorer.exe to the script text box and the path as an argument. This works for the most part. The original problem exists. Although I have checked "Run with highest priorities" in General, the audio that is playing sounds like Max Headroom with takes and retakes if anything else if running in the system especially the opening of Outlook.

I guess, after experimenting, that the Start /high statement cannot be invoked here. Maybe there needs to be some different syntax in this situation...

I have scheduled batch files working else where but don't see how to place all this in a batch file to be able to include the Start /high command you suggest.

Thoughts appreciated.
My System SpecsSystem Spec
21 Jan 2012   #9

Windows 8.1 ; Windows 7 x86 (Dec2008-Jan2013)
 
 

I think you should try to play that audio stream with Windows Media Player 12, which shoud come by default with Windows 7 (if you have Windows 7 N version you can get Windows Media Player here).

Open Windows Media Player - go to View - Library. Click on Playlists, then click File- Open URL, paste your streaming link. When link will be opened, save it as a separate playlist with "one-word" name (without spaces), for example RadioWAMU.

Close Windows Media Player. Now you need to create a bat file:
Code:
start /High C:\"Program Files"\"Windows Media Player"\"wmplayer.exe" /Playlist RadioWAMU
Then create a task to run that bat file.
I just have tested that batch file - Media Player runs like a charm with HIGH priority.

P.S. This is how WYSIWYG editor (section Quick Reply) looks in this forum (most of BBCodes are enabled):


Attached Thumbnails
Schedule a task-wysiwyg.png  
My System SpecsSystem Spec
21 Jan 2012   #10

Windows 7 32
 
 

Quote   Quote: Originally Posted by Neutron16 View Post
I think you should try to play that audio stream with Windows Media Player 12, which shoud come by default with Windows 7 (if you have Windows 7 N version you can get Windows Media Player here).

Open Windows Media Player - go to View - Library. Click on Playlists, then click File- Open URL, paste your streaming link. When link will be opened, save it as a separate playlist with "one-word" name (without spaces), for example RadioWAMU.

Close Windows Media Player. Now you need to create a bat file:
Code:
start /High C:\"Program Files"\"Windows Media Player"\"wmplayer.exe" /Playlist RadioWAMU
Then create a task to run that bat file.
I just have tested that batch file - Media Player runs like a charm with HIGH priority.

P.S. This is how WYSIWYG editor (section Quick Reply) looks in this forum (most of BBCodes are enabled):
OK, let me see if I can make sense out of this:

Using a plain text editor, I created a batch file: WAMURadio.bat that contains the line:
start /high C:\"Program Files"\"Windows Media Player"\"wmplayer.exe" /playlist radioWAMU

In Windows Media Player I created RadioWAMU in Library/Playlist.
I highlight RadioWAMU and click on: File/open URL and enter:
mms://wamu-wm.streamguys.com/WAMU-1.
Click on OK.

I then double click on WAMURadio.
All I get is an instance of the Windows Media Player square with the options: Play all Music, Go to Library, and Play previous list. It also has the play control buttons at the bottom. No radio playing.

Meanwhile, I can click on the URL above and get the radio station, no problem.

In a lark, I created a batch file RadioWAMU2.bat that contains the line:
start /high mms://wamu-wm.streamguys.com/WAMU-1
and it activates properly on a double click.

When I program it in Task Scheduler, it shows the same MaxHeadroom stuttering that any other attempt has shown.
Any form of activity in the computer, including the desktop refresh screensaver, will c-c-c-cause a-a-a-a-audio s-s-stut-t-tering and-d-d-d d-d-delay.

If I run the batch file or from an icon the audio s flawless.
My System SpecsSystem Spec
Reply

 Schedule a task




Thread Tools




Our Sites

Site Links

About Us

Find Us

Windows 7 Forums is an independent web site and has not been authorized, sponsored, or otherwise approved by Microsoft Corporation. "Windows 7" and related materials are trademarks of Microsoft Corp.

Designer Media Ltd

All times are GMT -5. The time now is 05:16 PM.
Twitter Facebook Google+



Windows 7 Forums

Seven Forums Android App Seven Forums IOS App
  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33