This example will play a .wav file named 2010_09.wav from the AutoMate directory.
Sub Main
'Play the sound file from the AutoMate directory
'the %AMDIR% is an AutoMate system constant that
'can only be used with the AutoMate task interpreter
'we could have also used a literal path
Action.PlaySound("%AMDIR%\2010_09.wav", "1")
End Sub