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,eda9cd0ad906c54b X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news3.google.com!news2.volia.net!zen.net.uk!dedekind.zen.co.uk!195.85.245.113.MISMATCH!molokai.public-internet.co.uk!newspeer.public-internet.co.uk!caladan!news-peer-lilac.gradwell.net!not-for-mail From: "Martin Dowie" Newsgroups: comp.lang.ada References: <4d4f4$439ee80e$49955ab$26123@ALLTEL.NET> <439fbcd3$0$19908$626a54ce@news.free.fr> Subject: Re: How to get pathname of executable Date: Thu, 15 Dec 2005 10:26:59 -0000 Organization: BAE SYSTEMS X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1506 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506 Message-ID: <43a142f9_1@glkas0286.greenlnk.net> X-Original-NNTP-Posting-Host: glkas0286.greenlnk.net NNTP-Posting-Date: 15 Dec 2005 10:28:35 GMT NNTP-Posting-Host: 20.133.0.1 X-Trace: 1134642515 news.gradwell.net 252 dnews/20.133.0.1 X-Complaints-To: news-abuse@gradwell.net Xref: g2news1.google.com comp.lang.ada:6884 Date: 2005-12-15T10:28:35+00:00 List-Id: Dirk Heinrichs wrote: > The GNAT GPL edition doesn't provide this, yet. But as soon as it > does, I will use it. Ugh? with Ada.Command_Line; use Ada.Command_Line; with Ada.Directories; use Ada.Directories; with Ada.Text_IO; use Ada.Text_IO; procedure Test_Exe_Loc is begin Put_Line (Full_Name (Containing_Directory (Command_Name))); end Test_Exe_Loc; C:\Ada\Temp>test_exe_loc c:\ada\temp C:\Ada\Temp>gnat -v GNAT GPL 2005 (20050729) ...