Article View: alt.comp.lang.learn.c-c++
Article #695Re: equivalent to app.path (return applications path) ?!??
From: Jerry Coffin
Date: Sun, 24 Oct 1999 00:00
Date: Sun, 24 Oct 1999 00:00
22 lines
1707 bytes
1707 bytes
In article <7uva69$o6k$1@hiram.io.com>, sean@harvell.com says...
> Does any one know what the C++ equivalent to Visual Basics app.path is? I
> would like to return the
> exact path that the executable is being executed from.
>
> Example program being run from:
> c:\test\mycoolapp.exe
>
> Function etc. would return:
> c:\test
argv[0] is normally the name of your application. This may or may not
include a full path, though it probably does more often than not.
Assuming it's present and has a form that looks like a path on
whatever system you're running, you can normally separate the name of
the executable from that path.
--
Later,
Jerry.
The universe is a figment of its own imagination.
Technical Details
Message-ID:
<MPG.127ce16189e998b0989757@news.mindspring.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<7uva69$o6k$1@hiram.io.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f4307,66b19b44094781ae X-Google-Attributes: gidf4307,public X-Google-Thread: 114592,66b19b44094781ae X-Google-Attributes: gid114592,public X-Google-Thread: f53ec,66b19b44094781ae X-Google-Attributes: gidf53ec,public X-Google-Thread: 10e4a8,66b19b44094781ae X-Google-Attributes: gid10e4a8,public X-Google-Thread: 109fba,66b19b44094781ae X-Google-Attributes: gid109fba,public X-Google-Thread: f7a51,66b19b44094781ae X-Google-Attributes: gidf7a51,public From: jcoffin@taeus.com (Jerry Coffin) Subject: Re: equivalent to app.path (return applications path) ?!?? Date: 1999/10/24 Message-ID: <MPG.127ce16189e998b0989757@news.mindspring.com> X-Deja-AN: 539983989 References: <7uva69$o6k$1@hiram.io.com> Organization: TAEUS X-Server-Date: 24 Oct 1999 16:28:02 GMT Newsgroups: alt.comp.lang.learn.c-c++,comp.lang.c++,es.comp.lenguajes.c++,microsoft.public.vc,microsoft.public.vc.language,nersc.c++