Created
March 17, 2024 06:09
-
-
Save Dobby233Liu/852e488a31e96c8b8af67e808bcb2a04 to your computer and use it in GitHub Desktop.
This file contains 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
sFontFn = "Fonts\方正像素.TTF" | |
Set objShell = CreateObject("Shell.Application") | |
Set objFs = CreateObject("Scripting.FileSystemObject") | |
Set objBaseDir = objShell.Namespace(objFs.GetParentFolderName(WScript.ScriptFullName)) | |
nWinFontNsId = &H14& | |
objShell.Namespace(nWinFontNsId).CopyHere objBaseDir.ParseName(sFontFn) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment