Click here to Skip to main content
15,905,508 members

Comments by Member 13985992 (Top 12 by date)

Member 13985992 25-Sep-18 2:11am View    
Because I CANNOT use vbscript it is my worst enemy.
But why does it play the same sound and say acsess denied? Also, do you have that folder?
Member 13985992 24-Sep-18 13:02pm View    
OK. I ran the code but... Something else broke.
It was playing the sound great as I wanted it but, now it only plays the same sound once. I echoed the %RAND% var and it does come up with random numbers but also after that it says "Access Denied". Never get any look with this type a' thing... =-( (I've tried running as administrator but no luck.)
Member 13985992 24-Sep-18 2:43am View    
it was a stack overflow post: https://stackoverflow.com/questions/23313709/play-invisible-music-with-batch-file
here is what they gave the person:
@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
Member 13985992 23-Sep-18 14:04pm View    
The batch part is the bit I made... But it said from my knowledge that this bit:
echo wscript.sleep (int(Sound.currentmedia.duration^)+1^)*1000) >sound.vbs
        ^
it thought it should be end of statement so just echo wscript.sleep
Member 13985992 21-Sep-18 12:05pm View    
DOESN'T WORK! That's the title of the question.