🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: detect software directory

#2901
From: Bruce Larrabee
Date: Sat, 28 Oct 2006 12:45
17 lines
1334 bytes
Roger wrote:

>>How do I detect the directory of the software I'm running ( I want this 
>>software to detect its own directory)
>>
> 
> What about:
> 
>   AnsiString asPath = ExtractFilePath(Application->ExeName);
> 
> Roger 
> 
> 

This is what I do.

Bruce
Technical Details
Message-ID: <45435105@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail
References: <4540e7c1$1@newsgroups.borland.com> <45421798$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,e49c98fa00ce3be2
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
Date: Sat, 28 Oct 2006 05:45:57 -0700
From: Bruce Larrabee <bruce_l@westbrookent.com>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.2) Gecko/20040804 Netscape/7.2 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Re: detect software directory
References: <4540e7c1$1@newsgroups.borland.com> <45421798$1@newsgroups.borland.com>
In-Reply-To: <45421798$1@newsgroups.borland.com>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
NNTP-Posting-Host: 207.173.13.5
Message-ID: <45435105@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1162039557 207.173.13.5 (28 Oct 2006 05:45:57 -0700)
Lines: 17
Path: arc1-ca.pugleaf.net!g2news2.google.com!news1.google.com!news3.google.com!news2.volia.net!newsfeed.gamma.ru!Gamma.RU!newsfeed.media.kyoto-u.ac.jp!newsfeeds.ihug.co.nz!ihug.co.nz!newsgroups.borland.com!not-for-mail