I have 8 sound cards installed and am trying to create dos code to dummy echo all the sound card exact names to text file. But ffmpeg won't echo output to a file .
Here is what I have tried, and not doing what it is supposed to do:
ffmpeg -list_devices true -f dshow -i dummy>>SoundCardName%batnum%.txt
it just lists.
Also, this doesn't work, and only lists the first sound card:
@For /f tokens^=1^,2delims^=^" %%a in (
'ffmpeg -list_devices true -f dshow -i dummy 2^>^&1 ^| findstr /c:"audio"'
) do (
if not defined AudioDevice (
set "AudioDevice=%%~b"
Echo "%AudioDevice%">>SoundCardName%batnum%.txt
)
)
I need all 8 sound cards listed.
I don't know what 2^>^&1 means.
I don't know what | findstr /c:"audio"' does. I always see pipe as something that should be or, but more likely is piping to something, in this case, I don't know.
Anyway. Why cant I simply >> the output to a file, that is shown in the dos box?