Hi Maurilio,
Okay, so if I understand correctly argv[0] works just like
everywhere else, and with the help of our cmdarg.c internals,
you're actually getting full paths, if you use Harbour functions
hb_DirBase() / hb_ProgName(), is that right?

Brgds,
Viktor

On Wed, Feb 18, 2009 at 5:19 PM, Maurilio Longo <maurilio.lo...@libero.it>wrote:

> Viktor,
>
> command line hasn't got the full path of the command (argv[0]); there is an
> api which gives such an information, but only for loaded .DLLs.
>
> Best regards.
>
> Maurilio.
>
> Viktor Szakáts wrote:
> >     > I've used your idea since in OS/2 I have a function which gives me
> >     the command
> >     > line, but the command name is as it has been entered and as such
> >     it lacks full
> >     > path and extension.
> >
> >
> > Full path and extension is the main point of hb_progname()
> > and hb_dirbase() (both based on this low level feature).
> >
> > So if there is any way to find that out on OS/2 too (even
> > when caller only passed relative path or no path), it'd be
> > great. This is needed for hbmk2, too.
> >
> > Brgds,
> > Viktor
> >
> >
> >
> > ------------------------------------------------------------------------
> >
> > _______________________________________________
> > Harbour mailing list
> > Harbour@harbour-project.org
> > http://lists.harbour-project.org/mailman/listinfo/harbour
>
> --
>  __________
> |  |  | |__| Maurilio Longo
> |_|_|_|____| farmaconsult s.r.l.
>
>
> _______________________________________________
> Harbour mailing list
> Harbour@harbour-project.org
> http://lists.harbour-project.org/mailman/listinfo/harbour
>
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to