system agent won't play wav files

I recently moved from Windows 95 to Windows 98. In Windows 95's System Agent I had set a task that played a wav file at a specified time. I did this by just designating the path and name of a wav file in the new SAGE task, since I had set the wav file type default action to PLAY using a small program (playwav.exe) that plays wav files without any user input.

With the same settings, Windows 98 System Agent won't play the wav file. It displays a "Could not start" status in the System Agent window and the log reports:
"Time's Up.job" (time is up.wav) 11/16/99 8:37:05 AM ** ERROR **
Unable to start task.
The specific error is:
0x80070002: The system cannot find the file specified."

The file IS there and if I click on the file in an Explorer window, the wav file plays properly using the same "playwav.exe". I've tried using
1. "C:\Sounds\time is up.wav"
2. C:\Sounds\timeis~1.wav
(this automatically changes to #1)
3. "C:\Program Files\Accessories\playwav.exe, "C:\Sounds\timeis~1.wav"
4. "C:\Program Files\Accessories\playwav.exe","C:\Sounds\timeis~1.wav"
5. "C:\Program Files\Accessories\playwav.exe" C:\Sounds\timeis~1.wav
6. "C:\Program Files\Accessories\playwav.exe","C:\Sounds\time is up.wav"
(there may be a variation of this that I missed here.)
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

What is you default media player for wav files? If you click the wav file in Win Explorer, it should use the Win98 Media Player to play the sound.
BobArnettAuthor Commented:
On my system wav file types are set to
open with:
"C:\Program Files\VOYETRA\AudioStation 32\as32chassis.exe"
and to play (default action)with a small utility called "playwav.exe" that just plays a sound rather than invoking an entire application.
Okay, when you click on the task manager and start creating a new task, is playwav.exe a listed program?
Cloud Class® Course: Amazon Web Services - Basic

Are you thinking about creating an Amazon Web Services account for your business? Not sure where to start? In this course you’ll get an overview of the history of AWS and take a tour of their user interface.

BobArnettAuthor Commented:
It is not. I have to locate it (C:\Program Files\Accessories\playwav.exe) using the "browse" button and then add the path and name of the wav file to the run field of the task
Try using media player to at least see if that works.
BobArnettAuthor Commented:
OK, I tried mplayer.exe and unfortunately it appears on my screen, plays the wav file and then stays open. Playwav.exe just plays the wav, it doesn't do anything onscreen, which is what I want. Incidentally, I thought perhaps mplayer.exe might have command line switches that would allow just the playing of the wav. In trying to access mplayer help, I get the message that "mplayer.chm could not be opened". I did a search on the hard drive and mplayer.chm is not there. So I hit a dead end there.
Bob, give this a try:

1. Create a folder on the "C" drive and call it playwav.

2. Put playwav.exe and the wav you want, such as timeisup.wav, in the same directory. Make sure that timeisup.wav is 8 characters and no spaces between letter, example: timeisup.wav. You can do this by remaning the copy of necessary.

3. Now I don't know the proper syntax for using playwav.exe, but if it is something like:

C:\playwav\playwav.exe /timeisup.wav

then put that into a batch file (in the same folderas the files), such as timeisup.bat and call that from the Task Scheduler.
BobArnettAuthor Commented:
OK, that works but it seems a rather convoluted way to do the job. What I don't understand is that when I just click on a wav file, playwav.exe just plays the thing (since I set it up that way in View|FolderOptions|FileType), so why doesn't SAGE do this like it did in Windows 95? It seems simple enough... just play it!
You added it to the registered file types, however it is not an installed program and therefore not in the Windows 98 registry. I started thinking about it after your last 2 posts and played with a similar wav player that came out early on for win95.

At least now it works!

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Thanks for the "B" grade Bob! I would have preferred you reject it outright if you weren't happy with it!
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.