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-24 03:29:22 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!vixen.cso.uiuc.edu!howland.erols.net!news.net.uni-c.dk!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:29:22 +0000 (UTC) Organization: Norwegian university of science and technology Message-ID: References: <3CC6191D.2DB44898@easystreet.com> NNTP-Posting-Host: kiuk0152.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1019644162 21366 129.241.83.78 (24 Apr 2002 10:29:22 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Wed, 24 Apr 2002 10:29:22 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Xref: archiver1.google.com comp.lang.ada:23041 Date: 2002-04-24T10:29:22+00:00 List-Id: On Tue, 23 Apr 2002 19:31:57 -0700, achrist@easystreet.com wrote: >> Ada.Command_Line.Command_Name. Since this is implementation-defined, >> it may not include the path on all targets. It does on Windows. > > I seem to recall that one version, maybe a new one, of Windows does not > always return the full path to the current program when you ask for the > command line. Are you sure that this works under all versions of > Windows (so far)? > > On a related topic, will this work (eg using GNAT for Windows 3.14p) > if the current program is somewhere on the network that doesn't have > a drive letter mapped to it? If so will the GNAT.Directory_Operations > work correctly where no drive letter is assigned? I don't know about windows. On windows I expect to put everything in one directory and if I can find this then I have the help files, pixmaps etc... However on linux you put the different files in designated directories. By the way on windows if you want to write a config file for the current user, how do one find the "Home directory"? I mean on NT you usually have write protection unless administrator so I would like to write and read the configurations from a directory (Profile ?) where the user has write access. Preben