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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!news.n-ix.net!news.belwue.de!newsfeed.arcor.de!newsspool4.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: Get the path and namefile in run time Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: Date: Fri, 2 Oct 2009 22:13:05 +0200 Message-ID: <1nxpjyuimc2a3.7okdkri5ozrw.dlg@40tude.net> NNTP-Posting-Date: 02 Oct 2009 22:13:05 CEST NNTP-Posting-Host: 4ea3addd.newsspool1.arcor-online.net X-Trace: DXC=aH\JD111mfB@Y=h<_c3PkHic==]BZ:afN4Fo<]lROoRA^YC2XCjHcbI<`c65>C[B[LDNcfSJ;bb[EIRnRBaCd 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. Kazakov http://www.dmitry-kazakov.de