🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #16461

Re: Resolving Environment Variables

#16461
From: Bruce Henderson
Date: Tue, 13 May 2003 19:33
22 lines
1588 bytes
Thanks Remy!

I stumbled upon that one too...  But I also found out that if I use
ShellExecuteEx instead of ShellExecute, there is a fMask that can be set to
SEE_MASK_DOENVSUBST, that does it automatically.


"Remy Lebeau (TeamB)" <gambit47@yahoo.com> wrote in message
news:3ec11f4d$1@newsgroups.borland.com...
>
> "Bruce Henderson" <Bruce@CreativeControlSystems.com> wrote in message
> news:3ec1031f@newsgroups.borland.com...
> > What is the best way to resolve variables like
> > %SystemRoot%, %HomeDrive%, %Temp%,
> > %UserName%, etc?
>
> Use the ExpandEnvironmentStrings() function.
>
>
> Gambit
>
>
Technical Details
Message-ID: <3ec148b7$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3ec1031f@newsgroups.borland.com> <3ec11f4d$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,e59ebca9d300d0e9
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-05-13 12:40:55 PST
From: "Bruce Henderson" <Bruce@CreativeControlSystems.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3ec1031f@newsgroups.borland.com> <3ec11f4d$1@newsgroups.borland.com>
Subject: Re: Resolving Environment Variables
Date: Tue, 13 May 2003 14:33:48 -0500
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
X-Mimeole: Produced By Microsoft MimeOLE V6.00.2800.1106
NNTP-Posting-Host: 216.202.195.25
Message-ID: <3ec148b7$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1052854455 216.202.195.25 (13 May 2003 12:34:15 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail