comp.lang.ada
 help / color / mirror / Atom feed
From: sjw <simon.j.wright@mac.com>
Subject: Re: Get the path and namefile in run time
Date: Sat, 3 Oct 2009 10:09:42 -0700 (PDT)
Date: 2009-10-03T10:09:42-07:00	[thread overview]
Message-ID: <9ab34c50-65b7-4388-81db-00ff51c38157@l35g2000vba.googlegroups.com> (raw)
In-Reply-To: 1nxpjyuimc2a3.7okdkri5ozrw.dlg@40tude.net

On Oct 2, 9:13 pm, "Dmitry A. Kazakov" <mail...@dmitry-kazakov.de>
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

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?)



  reply	other threads:[~2009-10-03 17:09 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-02 19:54 Get the path and namefile in run time Pablo
2009-10-02 20:13 ` Dmitry A. Kazakov
2009-10-03 17:09   ` sjw [this message]
2009-10-05 13:46   ` Pablo
2009-10-06 22:06     ` sjw
2009-10-05 19:43 ` Klaus Jeschke
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox