BorlandTalk.com Forum Index BorlandTalk.com
Borland discussion newsgroups
 
Archives   FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Default directories reference

 
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using
View previous topic :: View next topic  
Author Message
Marcelo
Guest





PostPosted: Thu Oct 30, 2003 2:40 pm    Post subject: Default directories reference Reply with quote



Hi
Are there any enviroment constants predefined in delphi (my docs, windows,
temp,etc), how I can get them?

The problem is that my customers use spanish or english MS windows and the
docs dir can be either My Documents or Mis Documentos
Thanks, Marcelo.


Back to top
Andy Hill
Guest





PostPosted: Thu Oct 30, 2003 3:09 pm    Post subject: Re: Default directories reference Reply with quote



You might want to check out these registry keys.

HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders
HKEY_CURRENT_USERSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders
HKEY_USERS.DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerShell Folders
HKEY_USERS.DEFAULTSoftwareMicrosoftWindowsCurrentVersionExplorerUser Shell Folders


Marcelo wrote:
Quote:
Hi
Are there any enviroment constants predefined in delphi (my docs, windows,
temp,etc), how I can get them?

The problem is that my customers use spanish or english MS windows and the
docs dir can be either My Documents or Mis Documentos
Thanks, Marcelo.




Back to top
Kurt Barthelmess
Guest





PostPosted: Thu Oct 30, 2003 3:31 pm    Post subject: Re: Default directories reference Reply with quote



"Marcelo" <linux (AT) csg-consulting (DOT) com.ar> wrote:

Quote:
Are there any enviroment constants predefined in delphi (my docs, windows,
temp,etc), how I can get them?

The problem is that my customers use spanish or english MS windows and the
docs dir can be either My Documents or Mis Documentos

Use the SHGetSpecialFolderLocation to identify the various locations
for special folders. The "My Documents" folder, for example, could be
named anything, even on a US English system.

Good luck.

Kurt


Back to top
Display posts from previous:   
Post new topic   Reply to topic    BorlandTalk.com Forum Index -> Delphi VCL Components Using All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2006 phpBB Group
SEO toolkit © 2004-2006 webmedic.