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!news1.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!208.49.83.146.MISMATCH!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> From: Stephen Leake Date: Mon, 23 Jul 2007 08:34:09 -0400 Message-ID: User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) Cancel-Lock: sha1:iyaWeOvw3xzCRH1AUBKXH7UYG2Q= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: 4959046a4a042759e00d419384 Xref: g2news1.google.com comp.lang.ada:16551 Date: 2007-07-23T08:34:09-04:00 List-Id: Rangdalf writes: > Hi, > > In C# there is something like Application.startupPath. Is there a > package or function to get this path. > I can get the current directory but I need the application one. In Ada 95, Ada.Command_Line.Command_Name returns the executable name, which usually (not always) has the full path; that is the application path. There may be a better solution in Ada 2005. -- -- Stephe