79641244

Date: 2025-05-27 22:00:04
Score: 1
Natty:
Report link

There might be spaces in the FileName and Char(34) might not work.

Put the " in the command.

    FileName = Button1.Text
    mciSendString("open """ & FileName & """ alias myDevice", Nothing, 0, 0)
    mciSendString("play myDevice", Nothing, 0, 0)


    FileName = Button2.Text
    mciSendString("open """ & FileName & """ alias myDevice", Nothing, 0, 0)
    mciSendString("play myDevice", Nothing, 0, 0)
Reasons:
  • Has code block (-0.5):
  • Unregistered user (0.5):
  • Low reputation (1):
Posted by: Paul