locked
'Unexpected expression' and 'Unexpected token' error trying to play .wav using Sound.Play RRS feed

  • Question

  • Can anyone tell me what is wrong with this line:

    Sound.Play(C:\WINDOWS\Media\Windows XP Battery Low.wav)

    SB gives me these two errors for this line:
    282,14: Expected an expression here.
    282,0: Unexpected token \WINDOWS\Media\Windows found.


    THNX!
    Monday, January 19, 2009 6:02 PM

Answers

  • Need quotes.
     
    Sound.Play("c:\windows\media\windows xp battery low.wav")

    • Marked as answer by Path_drc Monday, January 19, 2009 8:07 PM
    Monday, January 19, 2009 6:13 PM

All replies

  • Need quotes.
     
    Sound.Play("c:\windows\media\windows xp battery low.wav")

    • Marked as answer by Path_drc Monday, January 19, 2009 8:07 PM
    Monday, January 19, 2009 6:13 PM
  • OK, I feel a little dumb now.


    Thanks Vijaye.
    Monday, January 19, 2009 8:08 PM