From: "Martin Dowie" <martin.dowie@baesystems.com>
Subject: Re: How to get pathname of executable
Date: Thu, 15 Dec 2005 10:26:59 -0000
Date: 2005-12-15T10:28:35+00:00 [thread overview]
Message-ID: <43a142f9_1@glkas0286.greenlnk.net> (raw)
In-Reply-To: BIaof.16750$Nb2.297057@news1.nokia.com
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)
...
next prev parent reply other threads:[~2005-12-15 10:26 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-13 14:40 How to get pathname of executable Dirk Heinrichs
2005-12-13 15:26 ` Marc A. Criley
2005-12-13 15:57 ` Dirk Heinrichs
2005-12-14 6:34 ` Lionel Draghi
2005-12-15 0:06 ` Randy Brukardt
2005-12-15 9:30 ` Dirk Heinrichs
2005-12-15 10:26 ` Martin Dowie [this message]
2005-12-15 13:10 ` Dirk Heinrichs
2005-12-15 17:34 ` Pascal Obry
2005-12-15 22:42 ` Simon Wright
2005-12-16 6:56 ` Martin Dowie
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox