Last active
November 24, 2019 01:35
-
-
Save JonasGao/7416958e458e86f65312f72ce4ba5206 to your computer and use it in GitHub Desktop.
Get font title by powershell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$path = 'A:\segoescb.ttf' | |
$folder = Split-Path $path | |
$file = Split-Path $path -Leaf | |
$shell = New-Object -COMObject Shell.Application | |
$shellfolder = $shell.Namespace($folder) | |
$shellfile = $shellfolder.ParseName($file) | |
## get (localized) description and value of | |
## specified extended attributes numbers | |
## (0,2,21,165,166,195) | |
(0,1,2,3,4,5,6,9,10,19,21,25,33,34,58,62,165,166,167,170,191,192,193,195,197,203,255)| | |
Foreach-Object { | |
'{0,3} {1,-30} = {2}' -f $_, | |
$shellfolder.GetDetailsOf($null, $_), | |
$shellfolder.GetDetailsOf($shellfile, $_) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment