* Play a wave file using the Multimedia API PROCEDURE PlayWavAPI LParam pcWavfile Local cShortPath, nSPathLen DECLARE INTEGER mciSendString IN WINMM ; STRING sendstr, INTEGER retstr, INTEGER szret, INTEGER callback DECLARE INTEGER GetShortPathName IN KERNEL32 ; STRING lpszLongPath, STRING lpszShortPath, INTEGER cchBuffer cShortPath = Replicate(chr(0),512) nSPathLen = GetShortPathName(Fullpath(pcWavfile), @cShortPath, 512) cShortPath = Left(cShortPath, nSPathLen) mciSendString("open "+cShortPath+ ; " type waveaudio alias mmwav", 0, 0, 0) mciSendString("play mmwav wait", 0, 0, 0) mciSendString("close mmwav", 0, 0, 0) ENDPROC>Ramon,