Skip to content
Back to formatted view

Raw Message

Message-ID: <loom.20050307T174141-729@post.gmane.org>
Date: 2005-03-07T16:44:03Z
From: Gabor Grothendieck
Subject: How can we ring a bell in Windows?

Lu Joseph <c_joseph_lu <at> yahoo.com.tw> writes:

: 
: Hello useRs,
: 
: Is there a way to write code in R
: to ring a bell in Windows?
: 

Here are two ways:

cat("\7")

system("sndrec32 /play /close c:/windows/media/ding.wav")

The second way uses Windows Sound Recorder to play the ding.wav file
on my XP system and which may or may exist in the same location on 
other versions of Windows.