Easy access to Fonts folder

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I want an easy way to copy fonts to the font folder via code. Is there an easy way to get the path to the local systems font folder? And/or other system folders?
 
Hi,

Thanks for your post. Generally speaking, the font folder is <Windows
Folder>\Fonts. In addition, the font folder is also stored in registry at:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell
Folders
"Fonts" = specify the font folder

You can use .NET registry related classes to get this registry value:

RegistryKey Class
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfmicrosoftwin32registrykeyclasstopic.asp

Hope this helps.

Regards,

HuangTM
Microsoft Online Partner Support
MCSE/MCSD

Get Secure! -- www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
AFAIK on *all* versions of Windows the Fonts folder is under %WINDIR%.


--
____________________
Klaus H. Probst, MVP
http://www.vbbox.com/


M K said:
I want an easy way to copy fonts to the font folder via code. Is there an
easy way to get the path to the local systems font folder? And/or other
system folders?
 
Was using registry stuff for something else. So, this worked for me. Just get the value in a string, and use that as my path when I copy. Schweet, thanks.
 
Back
Top