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.1 required=5.0 tests=BAYES_00, PP_MIME_FAKE_ASCII_TEXT autolearn=no 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 01:55:03 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!colt.net!newspeer.clara.net!news.clara.net!oleane.net!oleane!nnrp.oleane.net!not-for-mail From: "Jean-Pierre Rosen" Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Wed, 24 Apr 2002 10:43:53 +0200 Organization: Adalog Message-ID: References: NNTP-Posting-Host: mailhost.axlog.fr X-Trace: s1.read.news.oleane.net 1019638303 17224 195.25.228.57 (24 Apr 2002 08:51:43 GMT) X-Complaints-To: abuse@oleane.net NNTP-Posting-Date: Wed, 24 Apr 2002 08:51:43 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4807.1700 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 Xref: archiver1.google.com comp.lang.ada:23038 Date: 2002-04-24T10:43:53+02:00 List-Id: "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) -- --------------------------------------------------------- J-P. Rosen (rosen@adalog.fr) Visit Adalog's web site at http://www.adalog.fr