From Newsgroup: alt.comp.os.windows-11
On Fri, 4/17/2026 3:10 PM, Alan K wrote:
I want to be able to play a wav/ogg/mp3 etc from a batch file and not get a window, diagnostic data, etc.-a Just simply play the dang thing.
I've tried a few things but no good.-a The one I have just prints which is fine but it of course has to load powershell.-a-a It's not fast.
powershell -c (New-Object Media.SoundPlayer "C:\Users\alkne\Music\Sounds\waves\ringout.wav").PlaySync();
Any ideas?
ffplay.exe 1>NUL 2>NUL -autoexit -nodisp recording.wav
You would want a statically compiled executable, rather
than the dynamic one with some number of DLL in it.
https://www.gyan.dev/ffmpeg/builds/
ffmpeg-release-full.7z
And this is not fast either, it's not aplay.
But a full release version of ffmpeg (containing ffplay.exe),
can play just about anything. If the item only has a sound track,
it will play the sound track (even content without timestamps as
such, such as the WAV in the example. I expect some of the delay,
is Windows Defender scanning the EXE on load.
Paul
--- Synchronet 3.21f-Linux NewsLink 1.2