Windows Batch File to Delete Audio Files, with Length Requirement -
Windows Batch File to Delete Audio Files, with Length Requirement -
and give thanks help. have tried searching illustration on how accomplish following, haven't found anything. help appreciated have no experience in creating bat file!
i have 3rd party programme records audio, , generates .mp3 file it. every 24 hours, generates new folder, , begins process on again. problem is, slightest bit of sound generate .mp3 file. left thousands of .mp3 files less 1 second. delete sound files in of subdirectories length of less 2 seconds. how can go this, , bat file right way accomplish this? manual way of sorting files in many, many directories time consuming process 20 - 30 days of files generated before able go through them.
for gui solution: shareware uncrippled total commander can list total directory tree (control b) , sort filesize (control f6) , can display mp3 files if needed.
this task need mark filesizes less x mbytes in single pane , can delete them @ once.
another solution available batch file delete mp3 files of 2.999 seconds or below: - alter [210] [10] delete files 1.999 seconds.
download mediainfo command line version sourceforge alter path executable in line 2 below launch batch file in main folder of tree of files if del commands see on screen right remove echo , run 1 time again delete files.
@echo off set "exe=c:\util\mediainfo\mediainfo.exe" /r %%a in (*.mp3) ( "%exe%" -f "%%a" |find "duration" | findstr /r ": 00:00:0[210]" >nul && echo del "%%a" ) pause windows batch-file audio
Comments
Post a Comment