Link to home
Start Free TrialLog in
Avatar of Olaf Berli
Olaf BerliFlag for Norway

asked on

Switching between tasks in Windows Task Scheduler

I'm setting up a Win 10 PC that will run Windows media player with different media sources (audio) at different times during the day. Have found two ways to do this -
One is to have wmplayer stop any running instances when starting a new task (under  the task settings).
The other way is to run two actions:  first a taskkill /IM wmplayer.exe and then wmplayer /Playlist mylist.

Using taskkill seems more "brutal", but I don't have any experienc when it comes to terminating applications this way..  
Any comments?
ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Olaf Berli

ASKER

Thanks!
Will go for taskkill.
Tried to do this (as mentioned in my question) within wmplayer, but found that it wasn't 100& reliable in my testing.
Thanks!