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,FREEMAIL_FROM autolearn=ham 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 Path: g2news2.google.com!postnews.google.com!l35g2000vba.googlegroups.com!not-for-mail From: sjw Newsgroups: comp.lang.ada Subject: Re: Get the path and namefile in run time Date: Sat, 3 Oct 2009 10:09:42 -0700 (PDT) Organization: http://groups.google.com Message-ID: <9ab34c50-65b7-4388-81db-00ff51c38157@l35g2000vba.googlegroups.com> References: <1nxpjyuimc2a3.7okdkri5ozrw.dlg@40tude.net> NNTP-Posting-Host: 82.30.110.254 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1254589782 11579 127.0.0.1 (3 Oct 2009 17:09:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 3 Oct 2009 17:09:42 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: l35g2000vba.googlegroups.com; posting-host=82.30.110.254; posting-account=_RXWmAoAAADQS3ojtLFDmTNJCT0N2R4U User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-us) AppleWebKit/531.9 (KHTML, like Gecko) Version/4.0.3 Safari/531.9,gzip(gfe),gzip(gfe) Xref: g2news2.google.com comp.lang.ada:8581 Date: 2009-10-03T10:09:42-07:00 List-Id: On Oct 2, 9:13=A0pm, "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=3D"main.exe" "and c: > > \myexecutable\". > > See Ada.Directories, functions: > > Simple_Name > Containing_Directory And Ada.Command_Line.Command_Name (actually .. does this include the ".exe" if that wasn't part of what was actually typed at the command line?)