11

I have a small VB Script that calls a system sound as an alert. In Windows XP I used sndrec32 to play that sound. But sndrec32 was not continued in Vista and Windows 7. It was light and quick and ideal for such tasks.

Q: What replaced this tool? When you click the test button in the sounds window what is it that plays it?

10

In Vista, Sound Recorder is instead called SoundRecorder.exe and has different command-line switches.

enter image description here
Source


  • The only command line option I found so far can only be used for recording.
    SoundRecorder /FILE myrec.wma /DURATION 0000:00:30

  • The old /PLAY "C:\Path\File.wav" /CLOSE switch doesn't work anymore

  • You can use wmplayer.exe %windir%\media\ding.wav instead.
    It supports several command line parameters and can be started minimized

  • You could copy the old sndrec32.exe from Windows XP over to your Windows 7 into the same place. It needs the "Run as Administrator" option checked

|improve this answer|||||
  • sndrec32.exe is also in Windows Server 2003 if you have that handy like I did. – Matthew Lock Dec 19 '14 at 3:19
  • I couldn't get it to start minimized by running from a command line. Found an answer here to create an run a VBA script: stackoverflow.com/questions/23313709/… – davidfrancis Jun 11 '15 at 7:58
  • Blech, so ugly. Why do they have to change the things they got right? – einpoklum Jan 4 '17 at 19:56

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.