In Batch Sounds abspielen?

1 Antwort

@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

Einfach "track12.mp3" durch deine Musik ersetzten. Bin mir aber nicht ganz sicher ob das mit Batch geht, oder nur mit Visual Basic Script (.vbs)

MFG

LuKas