Here's my attempt at a simple Windows batch file to produce a list indicating the playing length of each MP3 in a folder:
@echo off cls mediainfo --output=General;%%FileName%%.%%FileExtension%%^|%%Duration/String3%%\r\n *.mp3 *.wav > MP3Duration.txt
This works. My only question: is there a way to display the results onscreen as well as putting them into a text file?
I have both in the same folder, the GUI version that is called MediaInfo.exe, and the CLI version that I renamed to MediaInfoCLI.exe, I put the mediainfo folder in the Windows path.
Use the CLI (Command Line) version. http://mediainfo.sourceforge.net/fr/Download/Windows and the command below:
@ECHO off CLS MediaInfoCLI.exe --output=General;%%FileName%%.%%FileExtension%%^|%%Duration/String3%%\r\n *.mp3 *.wav --LogFile=MP3_Duration PAUSE
Log in to post a comment.
Here's my attempt at a simple Windows batch file to produce a list indicating the playing length of each MP3 in a folder:
This works. My only question: is there a way to display the results onscreen as well as putting them into a text file?
I have both in the same folder, the GUI version that is called MediaInfo.exe, and the CLI version that I renamed to MediaInfoCLI.exe, I put the mediainfo folder in the Windows path.
Use the CLI (Command Line) version.
http://mediainfo.sourceforge.net/fr/Download/Windows and the command below:
Last edit: Antonio R. 2018-04-27