PDA

Click to See Complete Forum and Search --> : mciSendString MP3


Wak
Oct 25th, 2002, 03:13 AM
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

HairyDave
Oct 25th, 2002, 03:37 AM
Have you tried placing double quotes around the file name? This is generally the way around spaces in strings.

"\"name of file\""

HD

Wak
Oct 25th, 2002, 04:19 AM
It's giving me errors saying mcisendString does not contain 1 parameter.

HairyDave
Oct 25th, 2002, 04:34 AM
You need to quote delimit ONLY the file name or command line.

If I am correct (unlikely :rolleyes: ), then you have put the entire parameter list in double quotes. You need to:

"\"C:\\mp3 - 1.mp3\""

The other parameters are separate.

HD

Wak
Oct 25th, 2002, 04:59 AM
Thank you... :D