Created
October 3, 2013 21:37
-
-
Save Navisho/6817525 to your computer and use it in GitHub Desktop.
Install Font from VB.NET
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
sRoot = "\\dvdc\ITSoftware\ZebraLabels\CrystalFonts\" | |
Set shell = CreateObject("Shell.Application") | |
Set fonts = shell.Namespace(&H14) | |
Set oFSO = CreateObject("scripting.filesystemobject") | |
Set oFolder = oFSO.getfolder(sRoot) | |
For Each oFile In oFolder.files | |
If oFile.Type = "Font file" Then | |
fonts.CopyHere oFile.Path | |
End If | |
Next | |
WScript.Echo "Hit any <Enter> to quit!" | |
WScript.StdIn.Read(1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment