Answer the question
In order to leave comments, you need to log in
How to write the contents of the console to a variable in Python?
system("Decoder.bat")
This is a piece of a program that, as a result of its work, displays text in the console.
It prints the following message to the console:
1234.wav
Decoding to 16000 Hz (1 channel)
Encoded with libopus unknown-fixed
Decoding complete.
Answer the question
In order to leave comments, you need to log in
You can try to redirect the output to the file
system("Decoder.bat >>1.txt")
And then read the text from it and parse it.
Didn't understand anything, but most likely you should use subprocess
insteadsystem
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question