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-Language: ENGLISH,ASCII X-Google-Thread: 103376,814d0ec938d6e4da X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-24 03:33:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!news.tele.dk!small.news.tele.dk!128.39.3.168!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Wed, 24 Apr 2002 10:33:39 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: NNTP-Posting-Host: kiuk0152.chembio.ntnu.no Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Trace: tyfon.itea.ntnu.no 1019644419 21366 129.241.83.78 (24 Apr 2002 10:33:39 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 24 Apr 2002 10:33:39 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:23042 Date: 2002-04-24T10:33:39+00:00 List-Id: On Wed, 24 Apr 2002 10:43:53 +0200, Jean-Pierre Rosen wrote: > > "Preben Randhol" a �crit dans le message news: slrnacb9v4.5ud.randhol+abuse@kiuk0156.chembio.ntnu.no... >> How can one in Ada95 find out from which directory the Ada program is >> stored in. I mean I need to find out if my program is stored in >> /usr/bin/ or /usr/local/bin or some other directory. Does anybody know >> how I can do this. Note that current directory is not equal to the >> directory the program is stored in. I use GNAT so if GNAT has some >> routines for this that I have missed, please tell me. I'll make it >> portable later if needed. >> > You can try package OS_Services from Adalog's components page > (http://www.adalog.fr/compo2.htm) Yes, but I think I will have problems with copyright issues. Preben