Re: How to get user's local setting folder
From: Andrew Diabo (aadiabo_at_ix.netcom.com)
Date: 05/22/04
- Next message: Mike Shkolnik: "Re: How to get user's local setting folder"
- Previous message: Andrew Diabo: "Re: How to get user's local setting folder"
- In reply to: David Lewis: "Re: How to get user's local setting folder"
- Next in thread: Viatcheslav V. Vassiliev: "Re: How to get user's local setting folder"
- Reply: Viatcheslav V. Vassiliev: "Re: How to get user's local setting folder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Sat, 22 May 2004 12:23:45 -0400
Hi David,
Thanks for the code snippet. I'll give it a try. How do one query a list of
environment variables in the system?
Thanks
Andrew
"David Lewis" <davidl@ocuco.com> wrote in message
news:40af093d@newsgroups.borland.com...
> I don't know if this is exactly what you need, but you could try the
> following. On Windows 2K it returns C:\Documents and Settings\User Name
>
> function GetProfilePath: String;
> var
> barray: array[0..MAX_PATH] of char;
> begin
> GetEnvironmentVariable(PChar('UserProfile'), @barray, MAX_PATH);
> Result := StrPas(@barray);
> end;
>
>
> "Andrew Diabo" <aadiabo@ix.netcom.com> wrote in message
> news:40aec8d2@newsgroups.borland.com...
> > I would like to save my applications settings .ini file in the login
> user's
> > local setting folder. What is the Windows API to get that folder? Thanks
> for
> > any help.
> >
> > Andrew
> >
> >
>
>
- Next message: Mike Shkolnik: "Re: How to get user's local setting folder"
- Previous message: Andrew Diabo: "Re: How to get user's local setting folder"
- In reply to: David Lewis: "Re: How to get user's local setting folder"
- Next in thread: Viatcheslav V. Vassiliev: "Re: How to get user's local setting folder"
- Reply: Viatcheslav V. Vassiliev: "Re: How to get user's local setting folder"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|