/**
* Script: PlaySound.js
* Purpose: Plays a wav file
* Author: Daren Thiel
* Date: 22 November 1998
*
* Note: rename this file PlaySound.js
* Web: http://www.winscripter.com
**/
/* Create MCI MultiMedia Control */
sound = new ActiveXObject("MCI.MMcontrol");
/* Select the wav file to play */
sound.FileName = "c:\\windows\\media\\The Microsoft Sound.wav";
/* Set the control to auto */
sound.AutoEnable = true;
/* Issue Commands */
sound.Command = "Open";
sound.Command = "Play";
/* Necessary to keep WSH from closing before sound completes */
WScript.Echo("Playing");