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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,74d8875c07189c16 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!postnews.google.com!z34g2000vbl.googlegroups.com!not-for-mail From: Pablo Newsgroups: comp.lang.ada Subject: Re: Get the path and namefile in run time Date: Mon, 5 Oct 2009 06:46:10 -0700 (PDT) Organization: http://groups.google.com Message-ID: <2d667829-bc43-4f9a-944d-f71076f0f935@z34g2000vbl.googlegroups.com> References: <1nxpjyuimc2a3.7okdkri5ozrw.dlg@40tude.net> NNTP-Posting-Host: 201.7.145.1 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: posting.google.com 1254750370 30992 127.0.0.1 (5 Oct 2009 13:46:10 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 5 Oct 2009 13:46:10 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: z34g2000vbl.googlegroups.com; posting-host=201.7.145.1; posting-account=n9Sa1woAAACZc_iwSjaEkj9Lnt-XVrSr User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; pt-BR; rv:1.9.0.14) Gecko/2009082707 Firefox/3.0.14 (.NET CLR 3.5.30729),gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8585 Date: 2009-10-05T06:46:10-07:00 List-Id: On 2 out, 17:13, "Dmitry A. Kazakov" wrote: > On Fri, 2 Oct 2009 12:54:40 -0700 (PDT), Pablo wrote: > > How can I set a string in run-time with the name of the file and other > > with the path? > > Say us, If the exec file is in c:\myexecutable\main.exe, I want a way > > to set a String in such a way that String1="main.exe" "and c: > > \myexecutable\". > > See Ada.Directories, functions: > > Simple_Name > Containing_Directory > > -- > Regards, > Dmitry A. Kazakovhttp://www.dmitry-kazakov.de Hi Dmitry, thanks. The problem of this is that I have to use Ada 95...and Ada.Directories is an Ada 2005 package.