Results 1 to 5 of 5

Thread: mciSendString MP3

  1. #1

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    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

  2. #2
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196
    Have you tried placing double quotes around the file name? This is generally the way around spaces in strings.

    "\"name of file\""

    HD

  3. #3

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    ...

    It's giving me errors saying mcisendString does not contain 1 parameter.
    Visual Basic 6.0 Enterprise
    Visual C++ 6.0 Professional

    Wak

  4. #4
    Addicted Member HairyDave's Avatar
    Join Date
    Aug 2002
    Location
    Er...I can't remember.
    Posts
    196
    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

  5. #5

    Thread Starter
    Hyperactive Member Wak's Avatar
    Join Date
    Nov 2000
    Location
    Brisbane, Queensland
    Posts
    298

    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
  •  



Click Here to Expand Forum to Full Width