Start mediaplayer playing in batch files

Source: Internet
Author: User

We know that you can use the wmplayer command to start a mediaplayer. To enable the mediaplayer to play the specified file or a media stream publishing point, we can use the following command format:

Wmplayer "MMS: // win-fw.migu.com/12530"

Wmplayer "C: \ wmpub \ wmroot \ legacy_content_clip.wmv"

However, you need to manually control the execution of commands in the running process. If you write the commands to the batch files, you can dynamically control the execution of the commands by planning tasks and other means.

Batch files are very simple. You can change the suffix of a text file to bat. Then, save the above content in the file and double-click it to execute. However, double-click will find that mediaplayer cannot be started because a step is missing.Copy the wmplayer.exe file under the c: \ Program Files (x86) \ Windows Media playerdirectory to the c: \ windows \ system32 directory..

Note: The above path c: \ Program Files (x86) \ Windows Media Player is a 64-bit system path. If it is a 32-bit system, it is C: \ Program Files \ Windows Media Player

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.