By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
445,876 Members | 1,200 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 445,876 IT Pros & Developers. It's quick & easy.

MCIsendstring

P: n/a
I made a program where wav files will be played from the database, with the
full path.LIKE

i = mciSendstring(open d:\sound.wav type waveaudio",0&,0,0)
i = mciSendstring(play d:\sound.wav ",0&,0,0)

This program will be written on a cdrom, in this case ithe cdrom volume is
D: , but on other
systems its not. How do i let the program choose the right volume?

Jeroen
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

"Jeroen van Vliet" <as****@asdasd.nl> wrote in message
news:br**********@reader10.wxs.nl...
I made a program where wav files will be played from the database, with the full path.LIKE

i = mciSendstring(open d:\sound.wav type waveaudio",0&,0,0)
i = mciSendstring(play d:\sound.wav ",0&,0,0)

This program will be written on a cdrom, in this case ithe cdrom volume is
D: , but on other
systems its not. How do i let the program choose the right volume?

Jeroen

Jeroen..
If the program is on the same volume, you can use something like:

Dim WAVpath as string
WAVpath = App.Path & "\sounds\sound.wav"

Just include WAVPath in the mcisendstring cmd.

Beste wensen van New York.

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.