Skip to content

Instantly share code, notes, and snippets.

@niskala5570
Created December 28, 2023 04:39
Show Gist options
  • Save niskala5570/81c9976680140ea784f2c2ccea7e1617 to your computer and use it in GitHub Desktop.
Save niskala5570/81c9976680140ea784f2c2ccea7e1617 to your computer and use it in GitHub Desktop.
Font Renamer by Name Data IDK
@echo off
SetLocal EnableDelayedExpansion
Rem Taken from https://superuser.com/questions/1488164/batch-script-to-replace-otf-file-names-with-title
Rem Make sure you have exiftool in your path. (See link above)
Rem Specify here the path where your fonts are:
set FontsPath = D:\Niskala%'s Void\Font\Arabic\A-TobeRenamed
for %%a in (%FontsPath%*) do (
for /f "Delims=" %%b in ('exiftool -s3 -FontName "%%a"') do ren "%%a" "%%b%%~xa"
)
echo.
pause
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment