• 0

Create Batch Script to Fix Mp3s


Question

Im running windows xp. I need help to create a batch script to run this command line program on all the mp3s in my Music Folder. Its repairs the header of each mp3. Its called mp3val.

Usage:

mp3val.exe <files to validate> [arguments]

Arguments:

-f try to fix errors

-l<file name> write log to the specified file (default: stdout)

-si suppress INFO messages

-nb delete .bak files (suitable with -f)

-t keep file timestamps (suitable with -f)

-p pipe mode (receive input file names from stdin)

-v print version number and exit

I want to run this on all the mp3s in my mp3 folder, all directories and sub directories. Also id like to create a single log and append to it each time. If anyone can help me out. That would be great.

Thanks

Link to comment
Share on other sites

1 answer to this question

Recommended Posts

  • 0

try...

@echo off
for /r "%cd%" %%f in (*.mp3) do mp3val.exe "%%f" [arguments]

so long as you put the batch file and the mp3val executable into the same root folder that should do the trick..

it will loop through each .mp3 file in the root dir and all subfolders and execute the mp3val app on them, you just need to do the arguments ;)

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.