- Home
·
- Miscellaneous
·
- Extract the list of installed TTF fonts using Win32_FontInfoAction WMI class
Extract the list of installed TTF fonts using Win32_FontInfoAction WMI class
Extract the list of installed TTF fonts using Win32_FontInfoAction WMI class
Rate Extract the list of installed TTF fonts using Win32_FontInfoAction WMI class
(1(1 Vote))
On Error Resume Next
Computer = "."
Set WMIService = GetObject("winmgmts:\\" & Computer & "\root\cimv2")
Set Items = WMIService.ExecQuery("Select * from Win32_FontInfoAction")
Set OutFile = CreateObject("WScript.Shell")
Const ForAppending = 2
Set FileSystem = CreateObject("Scripting.FileSystemObject")
Set TextFile = FileSystem.OpenTextFile ("c:\Fonts.txt", ForAppending, True)
TextFile.WriteLine "Fonts Details as follows......"
TextFile.WriteLine
TextFile.WriteLine "***********************************************************************"
For Each Font in Items
TextFile.WriteLine Font.File
Next
TextFile.WriteLine "***********************************************************************"
TextFile.Close
OutFile.Run "notepad.exe c:\Fonts.txt",1,True
Extract the list of installed TTF fonts using Win32_FontInfoAction WMI class Comments
No comments yet — be the first to post one!
Post a Comment