From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,b97aa4480eccc494 X-Google-Attributes: gid103376,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news4.google.com!out01a.usenetserver.com!news.usenetserver.com!in02.usenetserver.com!news.usenetserver.com!uns-out.usenetserver.com!news.usenetserver.com!pc03.usenetserver.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: How to get the application path References: <46a456aa$0$25908$426a34cc@news.free.fr> <1185204459.328520.240930@z24g2000prh.googlegroups.com> From: Stephen Leake Date: Tue, 24 Jul 2007 07:14:31 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:81Mf5AHTfjjWr5W/auRMOLQozaI= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: cfee046a5df16759e00d422671 Xref: g2news1.google.com comp.lang.ada:16591 Date: 2007-07-24T07:14:31-04:00 List-Id: Markus E Leypold writes: > BTW: Is it possible the OP doesn't want the path to the executable, > but rather the directory which becomes /became the wurrent directory > of the application at startup? Isn't that what Application.startupPath > is on Windows? Right. In which case Ada.Directories.Current_Directory is the answer. If you want the default directory at the start of the application, call this then, and cache it. If you want the default directory at the time of whatever operation you are currently doing, call it then. -- -- Stephe