批处理文件来播放一首歌曲 [英] Batch File To Play A Song
本文介绍了批处理文件来播放一首歌曲的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一点的情况下,我需要做一个批处理文件,播放一首歌曲对我做了一个程序,但这里是抓,我需要的球员是无形的,你不能看到它,有没有这样做,所以这首歌的任何方式将再次打到底?
I have a bit of a situation, I need to make a batch file play a song on a program I have made, but here is the catch, I need the player to be invisible, you must not see it, is there any way of doing this so the song will play once the end?
感谢:D
推荐答案
下面是蝙蝠/ VBS播放音频文件:
Here is a Bat/VBS to play an audio file :
@echo off
set file=track12.mp3
( echo Set Sound = CreateObject("WMPlayer.OCX.7"^)
echo Sound.URL = "%file%"
echo Sound.Controls.play
echo do while Sound.currentmedia.duration = 0
echo wscript.sleep 100
echo loop
echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbs
start /min sound.vbs
或者你可以用这个小命令我的AutoIt( playsound写道。 EXE )
使用:playsound.exeyouraudiofile.mp3 / WAV
Use : playsound.exe "youraudiofile.mp3/wav"
这篇关于批处理文件来播放一首歌曲的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文