slloyd has asked for the wisdom of the Perl Monks concerning the following question:
This vbscript works fine#!perl use strict; use Win32::TieRegistry; $Registry->Delimiter("/"); # Set delimiter to "/". $|=1; my $fontskey = $Registry->{"LMachine/SOFTWARE/Microsoft/Windows NT/Cur +rentVersion/Fonts"} || die $^E; for my $val ($fontskey->ValueNames) { print "$val\n"; } exit;
Const HKEY_LOCAL_MACHINE = &H80000002 strComputer = "." Set objReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & +_ strComputer & "\root\default:StdRegProv") strKeyPath = "Software\Microsoft\Windows NT\CurrentVersion\Fonts" objReg.EnumValues HKEY_LOCAL_MACHINE, _ strKeyPath,arrEntryNames For Each strValue in arrEntryNames Wscript.Echo strValue Next
-------------------------------
Need a good Perl friendly Host Provider?
http://www.dreamhost.com
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Enumerate Win32 Fonts
by ww (Archbishop) on Jan 21, 2008 at 23:13 UTC | |
by Anonymous Monk on Jan 21, 2008 at 23:48 UTC | |
by slloyd (Hermit) on Jan 22, 2008 at 00:04 UTC | |
by ww (Archbishop) on Jan 22, 2008 at 00:36 UTC | |
|
Re: Enumerate Win32 Fonts
by nikosv (Deacon) on Jan 22, 2008 at 11:20 UTC | |
by slloyd (Hermit) on Jan 22, 2008 at 15:57 UTC | |
by nikosv (Deacon) on Jan 22, 2008 at 20:55 UTC | |
|
Re: Enumerate Win32 Fonts
by Marza (Vicar) on Jan 22, 2008 at 07:04 UTC | |
by slloyd (Hermit) on Jan 22, 2008 at 15:47 UTC | |
by slloyd (Hermit) on Jan 24, 2008 at 00:00 UTC | |
|
Re: Enumerate Win32 Fonts
by BitDreamer (Sexton) on Feb 17, 2015 at 21:55 UTC |