15,905,508 members
Sign in
Sign in
Email
Password
Forgot your password?
Sign in with
home
articles
Browse Topics
>
Latest Articles
Top Articles
Posting/Update Guidelines
Article Help Forum
Submit an article or tip
Import GitHub Project
Import your Blog
quick answers
Q&A
Ask a Question
View Unanswered Questions
View All Questions
View C# questions
View C++ questions
View Javascript questions
View Visual Basic questions
View Python questions
discussions
forums
CodeProject.AI Server
All Message Boards...
Application Lifecycle
>
Running a Business
Sales / Marketing
Collaboration / Beta Testing
Work Issues
Design and Architecture
Artificial Intelligence
ASP.NET
JavaScript
Internet of Things
C / C++ / MFC
>
ATL / WTL / STL
Managed C++/CLI
C#
Free Tools
Objective-C and Swift
Database
Hardware & Devices
>
System Admin
Hosting and Servers
Java
Linux Programming
Python
.NET (Core and Framework)
Android
iOS
Mobile
WPF
Visual Basic
Web Development
Site Bugs / Suggestions
Spam and Abuse Watch
features
features
Competitions
News
The Insider Newsletter
The Daily Build Newsletter
Newsletter archive
Surveys
CodeProject Stuff
community
lounge
Who's Who
Most Valuable Professionals
The Lounge
The CodeProject Blog
Where I Am: Member Photos
The Insider News
The Weird & The Wonderful
help
?
What is 'CodeProject'?
General FAQ
Ask a Question
Bugs and Suggestions
Article Help Forum
About Us
Search within:
Articles
Quick Answers
Messages
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.
Member 13985992
21-Sep-18 11:21am
View
i looked back at the comments and i misread your answer, i did assign a value to the var, just to make sure, what variable are you talking about?
Member 13985992
21-Sep-18 11:19am
View
Deleted
i looked back and i get what you mean, i already had an assigned var
slowdown = ("%0|%0" & NewLine)
and
Dim code1 As String = ""
Member 13985992
21-Sep-18 11:17am
View
Deleted
oh wait. ive looked back at the commnets and i have
slowdown = ("%0|%0" & NewLine)
i changed it since the making this thread
Member 13985992
21-Sep-18 11:01am
View
why do i need it?
Member 13985992
21-Sep-18 10:47am
View
still don't get it soz
why do i need it
Member 13985992
21-Sep-18 10:25am
View
I don't know! I'm a begginner
Member 13985992
21-Sep-18 9:18am
View
I don't get it, what do you mean by assign result? Give me an example.
Show More