Skip to content

Instantly share code, notes, and snippets.

@droidlabel
Last active January 11, 2021 18:48
Show Gist options
  • Save droidlabel/6b3f9aed1e0fba6deea2 to your computer and use it in GitHub Desktop.
Save droidlabel/6b3f9aed1e0fba6deea2 to your computer and use it in GitHub Desktop.
Match Title in MKV file with filename
REM **** Requiers mkvpropedit.exe comes bundled with MKVToolNix
REM **** Function: Replaces title of all mkv files in a folder with their file names.
REM **** Steps:
REM **** 1. Replace mkvpropedit.exe locaiton in the code
REM **** 2. save as .bat file
REM **** 3. Copy the file in same folder as desired mkv files and run it.
echo ***** Starting MKVtitle *****
for %%m in (*.mkv) do (
echo Changing %%m Title to "%%~nm"
REM point to location of mkvpropedit.exe in following line
"D:\Softwares\Converters\mkvtoolnix\mkvpropedit.exe" "%%m" -e info -s title="%%~nm"
echo -----
)
echo ***** Finished *****
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment