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-7-bit X-Google-Thread: 103376,814d0ec938d6e4da,start X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-23 11:28:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!easynet-tele!easynet-melon!easynet.net!uio.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: How to find directory where the program is? Date: Tue, 23 Apr 2002 18:28:48 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1019586528 22036 129.241.83.82 (23 Apr 2002 18:28:48 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Tue, 23 Apr 2002 18:28:48 +0000 (UTC) User-Agent: slrn/0.9.7.3 (Linux) Xref: archiver1.google.com comp.lang.ada:22999 Date: 2002-04-23T18:28:48+00:00 List-Id: 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. Thanks for any hints in advance. No it is not a homework (neither am I a student taking courses) it is for my Glosa program (http://www.pvv.org/~randhol/Ada95/Glosa/). Preben -- "Jeg tror nordmenn har glemt hvordan de tilbreder fisk. De er mest opptatt av firkantet fisk." -- Kristian Kristiansen, yrkesfisker, aftenposten.no 19/04/02