in reply to Re: Enumerate Win32 Fonts
in thread Enumerate Win32 Fonts

When I run your code it hangs on the foreach. I am not sure why.

-------------------------------
Need a good Perl friendly Host Provider?
http://www.dreamhost.com

Replies are listed 'Best First'.
Re^3: Enumerate Win32 Fonts
by nikosv (Deacon) on Jan 22, 2008 at 20:55 UTC
    give it some time,it may appear like it's hanging.if it reaches beyond 'die "WMI connection failed";' should be fine.
    It runs a 'select *' query so it will take some time.Subsequent calls will be faster.