» An ultimate catalog of computer data
Forum posts for wmplayer.exe
Executing a command when closing Batch file
I have a batch file playing a sound in the background while it runs, using the method at Batch file executing a sound silently however, when I exit the batch file, the music will continue to play.
Id there any way to run a command while a batch file is closing, so that the sound file will stop playing?
I've tried an example I found called onexit:
onexit taskkill /im wmplayer.exe
But it doesn't work.
View complete forum thread with replies
Other posts related to wmplayer.exe
See Related Forum Messages: Follow the Links Below to View Complete Thread
Current playing item in Windows Media Player (wmplayer.exe ver. 12)
Run more of one command in ShellExecute function (C++)
Play() function not working in R [duplicate]
C# string handling how get path and args from a string
Playback Complete In Windows Media Player
Executing a command when closing Batch file