|
-
Oct 25th, 2002, 03:13 AM
#1
Thread Starter
Hyperactive Member
mciSendString MP3
How would I go about playing an mp3 with a space in the filename?
eg. the file "C:\mp3 - 1.mp3"
I'm running windows xp, how can I play a file that is in the following directory?
"C:\Documents and Settings\Matts\Desktop\mp3\mp31.mp3"
I'm having troubles with these two things, lol.
Thank you
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Oct 25th, 2002, 03:37 AM
#2
Addicted Member
Have you tried placing double quotes around the file name? This is generally the way around spaces in strings.
"\"name of file\""
HD
-
Oct 25th, 2002, 04:19 AM
#3
Thread Starter
Hyperactive Member
...
It's giving me errors saying mcisendString does not contain 1 parameter.
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
-
Oct 25th, 2002, 04:34 AM
#4
Addicted Member
You need to quote delimit ONLY the file name or command line.
If I am correct (unlikely ), then you have put the entire parameter list in double quotes. You need to:
"\"C:\\mp3 - 1.mp3\""
The other parameters are separate.
HD
-
Oct 25th, 2002, 04:59 AM
#5
Thread Starter
Hyperactive Member
life - saver
Thank you...
Visual Basic 6.0 Enterprise
Visual C++ 6.0 Professional
Wak 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|