Hi,

Im trying to create a Media Player in .NET, I use this code to open a file:
mciSendString("open " & filename & " alias music", 0, 0, 0)

and I get the filename with:
filename = Chr(34) & tbxFilename.Text & Chr(34)

But if I try to play a file with a ! or a ' in the name, it says there was a problem while initializing MCI.

Is there a way I can play these files or do I have to rename them?

Thx, Don