![]() Into %%~dpni and then adding the ".mp3" extension. %%~ni The file name, excluding the extension.For each MP4 file found, check to see if there exists a corresponding MP3 file. ![]() That is, do a recursive directory listing of all MP4 files. Given that, deduplicate.bat would look like: OFFįOR /F "usebackq delims=" %%i in ( `dir /b /s *.mp4` ) do ( OK, so the OS is Windows, and it's possible that the MP4's are the only version of a track, in which case we don't want to delete it. Also, the braces are in quotes in case you have file names with spaces in them. Use the full path to 'rm' so that you don't wind up using an alias such as 'rm -i'. In Linux, also from the top directory, you would type: find. ![]() ![]() The '/S' flag deletes files not only in the current directory, but in all sub-directories as well. In Windows, you can do this simply by going to the top level of your music file directories and typing: DEL *.mp4 /S I'm going to assume that by manually, you mean you don't want to delete them one at a time. ![]()
0 Comments
Leave a Reply. |