播放无形音乐批处理文件

播放无形音乐批处理文件

本文介绍了播放无形音乐批处理文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我见过cfew线程说怎么当它与开始播放音乐最小化播放启动/分钟,以及一个创建了一个VBS脚本运行最小化音频。但无论我试图让音频最小化运行哪种方式,它出现在屏幕上。

另外,如果我尝试启动/分钟启动/ MAX 我会得到相同的结果。

有谁知道我能得到的东西开始减少?


解决方案

关闭@echo
设置文件= track12.mp3
(回声一整套完善= CREATEOBJECT(WMPlayer.OCX.7^)
  回声Sound.URL =%文件%
  回声Sound.Controls.play
  回声做而Sound.currentmedia.duration = 0
  回声wscript.sleep 100
  回声环
  回声wscript.sleep(中间体(Sound.currentmedia.duration ^)+ 1 ^)* 1000)> sound.vbs
启动/分钟sound.vbs

只是改变 track12.mp3 您的音频文件的名称

I've seen a cfew threads that say how to play music with the play minimized when it starts with start /min, as well as one that creates a VBS script to run the audio minimized. But no matter which way I try to get audio to run minimized, it appears on screen.

Also, if I try start /min or start /max I'll get the same result.

Does anyone know how I can get something to start minimized?

解决方案
@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

just change track12.mp3 with the name of your audio file

这篇关于播放无形音乐批处理文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-05 15:41