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 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-04-25 19:56:24 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!kibo.news.demon.net!demon!psiuk-p2!psiuk-p3!uknet!psiuk-n!news.pace.co.uk!nh.pace.co.uk!not-for-mail From: "Marin David Condic" Newsgroups: comp.lang.ada Subject: Re: How to find directory where the program is? Date: Thu, 25 Apr 2002 10:18:12 -0400 Organization: Posted on a server owned by Pace Micro Technology plc Message-ID: References: <3CC6D15A.2070509@mail.com> <3cc73115.426446486@news.cis.dfn.de> NNTP-Posting-Host: dhcp-200-133.miami.pace.co.uk X-Trace: nh.pace.co.uk 1019744295 21048 136.170.200.133 (25 Apr 2002 14:18:15 GMT) X-Complaints-To: newsmaster@news.cam.pace.co.uk NNTP-Posting-Date: 25 Apr 2002 14:18:15 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4522.1200 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4522.1200 Xref: archiver1.google.com comp.lang.ada:23132 Date: 2002-04-25T14:18:15+00:00 List-Id: Sounds like something that would benefit from a logical name, environment variable or other system dependent technique. I doubt there is any good way of doing it that will work across all Ada implementations & platforms. You might rely on a command line parameter and set up a shell script or batch file to do the actual execution - the user gets a simple command to run the program and you have an easily modified script file for specifying the directory in which it is installed. It at least lets you code to a system-independent scheme, with the dependencies left to the script file. I wonder if it is possible to specify a portable interface for doing this sort of thing that could be supported in some manner on most popular operating systems? Would most OS's provide some version of a logical name such that defining a "Translate_Logical_Name" operation would yield things like files/directories? MDC -- Marin David Condic Senior Software Engineer Pace Micro Technology Americas www.pacemicro.com Enabling the digital revolution e-Mail: marin.condic@pacemicro.com "Preben Randhol" wrote in message news:slrnacfc16.145.randhol+abuse@kiuk0156.chembio.ntnu.no... > > Basicly so that the program can find out where it's other files are like > the help files and graphics etc... >