Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sound recorder won't play and close automatically

Status
Not open for further replies.

yankele

Technical User
Apr 11, 2003
15
CA
When I'm *really* stumped, this is the place I come to!

Ok, folks, got another one for you. I want to play wav files with sndrec32.exe. A straight association brings up the program but I have to click the play button to run the particular wav file that I want to hear. What I want is for the program to run the file automatically so that when I run a wav file the sound will play without further intervention on my part and the program will close automatically after ward. I've tried editing the registry six ways from Sunday including inserting play -play /play close -close /close with combinations of %1 "%1". Also tried creating my own brand new wav class referring to wavfile instead of soundrec which is the default. Still no go. The program comes up but it won't run. It used to work in win98 but won't work now in my win2k upgrade.
Any ideas?

This is the setting I use for my wavfile entry:
_____________________________________
REGEDIT4

[HKEY_CLASSES_ROOT\wavfile]

[HKEY_CLASSES_ROOT\wavfile\DefaultIcon]
@="C:\WINNT\system32\sndrec32.exe"

[HKEY_CLASSES_ROOT\wavfile\shell]
@="&play"

[HKEY_CLASSES_ROOT\wavfile\shell\play]

[HKEY_CLASSES_ROOT\wavfile\shell\play\command]
@="C:\WINNT\system32\sndrec32.exe /play /close %1"
___________________________________________________

The SoundRec entry (which I am not using because it won't do what I want it to) is this:
______________________________________________
REGEDIT4

[HKEY_CLASSES_ROOT\SoundRec]
@="Wave Sound"

[HKEY_CLASSES_ROOT\SoundRec\CLSID]
@="{00020C01-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\SoundRec\protocol]

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdExecute]

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdExecute\server]
@="sndrec32.exe"

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdFileEditing]

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdFileEditing\server]
@="sndrec32.exe"

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdFileEditing\verb]

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdFileEditing\verb<!--POST BOX-->]
@=&quot;&Play&quot;

[HKEY_CLASSES_ROOT\SoundRec\protocol\StdFileEditing\verb]
@=&quot;&Edit&quot;
_______________________________________________

This one is a little tricky and I am not sure how to edit it to add the /play /close components.

Hope someone can help.

Thanks.


Yankele
ABIT BE6, Celeron 500, 256RAM,
20G HD, Gigabyte GA-GF 1280,
SB PCI128 Win98(orig), IE6, OE6,
AVG, Kerio

 
My signature in the previous post indicated that I was using win98. No lomger. I am now running win2k. Sorry about that.

Yankele
ABIT BE6, Celeron 500, 256RAM,
20G HD, 3G HD, Gigabyte GA-GF 1280,
SB PCI128, Win2k Pro, IE6, OE6,
AVG, Kerio

 
Yankele,

Change this entry to put double quotes around the %1, so that it will get recognised correctly as a filepath and name.

[HKEY_CLASSES_ROOT\wavfile\shell\play\command]
@=&quot;C:\WINNT\system32\sndrec32.exe /play /close &quot;&quot;%1&quot;&quot;

- or edit this from the file Types properties tab in explorer's Tools -> Folder Options dialog.

John
 
Been there. Done that. Doesn't work. It did work for me in win98 but in win2k doesn't happen.

Yankele
ABIT BE6, Celeron 500, 256RAM,
20G HD, 3G HD, Gigabyte GA-GF 1280,
SB PCI128, Win2k Pro, IE6, OE6,
AVG, Kerio

 
On my Windows 2000 installation, the path is set as:

&quot;C:\WINNT\System32\sndrec32.exe /play &quot;&quot;%1&quot;&quot; /close&quot;

Try this (I must admit that I don't use Soundrec at all though).

John
 

You can also try editing the file association in Windows for default actions.

Open up any window (i.e. double click my computer&quot;) and click:

Tools -> Folder Options -> File Types -> WAV -> ADVANCED

and it should have listed
open
play
record

If it does not, then add them and try again.

I think that might fix up your problem. Sometimes when your association changes the default actions get lost or changed.

Good luck!

 

Also, to make play bold like that, make sure you select play and choose &quot;Set default&quot;.

If that doesn't do the trick, try adding &quot;close&quot; after the &quot;record&quot; entry.

Good luck!

 
Thanks for all the input. Not much seemed to work until I received the following siggestion from Snakefoot in his forum:
*****************************************************
Instead of trying to update your filetypes through the registry, then I recommend using the tool provided by Microsoft to edit the filetypes.

Think this quote will help you in the right direction:
Quote:This is an easy fix, but there're lots of steps so read closely. (You can cut&paste this into a .txt, or notepad, file
if you want to print it out.)

1. Open a windows explorer window (or &quot;My Computer&quot;) and pull-down the &quot;Tools&quot; menu
from the top. Select &quot;Folder Options&quot; and choose the &quot;File Types&quot; tab from the top.

2. Windows will read your file-associations and eventually give you a list. When
the list appears, scroll down to the &quot;WAV&quot; entry (hint: press &quot;w&quot; and it will take
you right there)

3. Press the &quot;Advance&quot; button on the right. Select &quot;Play&quot; from the list of available
actions. Press the &quot;Edit&quot; button on the right.

4. In the field for &quot;Application used to perform the action:&quot; substitute what you
find with, &quot;sndrec32.exe /play /close %1&quot;. Under the &quot;DDE&quot; information you'll see
a field entitled &quot;Application&quot; put &quot;sndrec32&quot; there and windows won't try to overwrite
what you've done.

5. To select your own icon, go back to the &quot;Edit File Type&quot; window you were just
on and you'll see a &quot;Choose Icon...&quot; button. You can browse over to &quot;windowssystem32sndrec32.exe&quot;
and find the old icons you might prefer.


******************************************
Worked like a charm!



Yankele
ABIT BE6, Celeron 500, 256RAM,
20G HD, 3G HD, Gigabyte GA-GF 1280,
SB PCI128, Win2k Pro, IE6, OE6,
AVG, Kerio
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top