Embedded media player in an HTA, dynamic FileName
An HTA using VBScript I am working on has Media Player embedded in it.
The player works great if I enter the full path to an audio file in the Media Player OBJECT
<PARAM NAME="FileName" VALUE="N:\ringtones\music\foo.mp3">
Now, when I use a variable in this path, the player gives an error.
<PARAM NAME="FileName" VALUE="N:\ringtones\music\"&document.all.ofile_nam e.value>
where the variable contains "foo.mp3" (without the quotes)
The file you are attempting to play has an extension (.) that does not match the file format...blah blah
So, I used a msgbox to check the value of the variable and it contains the filename as intended. "foo.mp3"
Is there anything obvioisly wrong with the way I attempted to do this?
Do I need to provide more information?
Last edited by kapu; 15-05-2009 at 08:35 AM.