Newsgroups: comp.os.msdos.programmer
Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!sdd.hp.com!elroy.jpl.nasa.gov!decwrl!netcomsv!mrs
From: mrs@netcom.COM (Morgan Schweers)
Subject: Re: Where's the executable located?
Message-ID: <1991Jun26.064749.17625@netcom.COM>
Organization: McAfee Associates
References: <i8Hrm1=@cs.psu.edu> <1991Jun24.133431.10280@druid.uucp>
Date: Wed, 26 Jun 1991 06:47:49 GMT

Some time ago darcy@druid.uucp (D'Arcy J.M. Cain) happily mumbled: 
>In <i8Hrm1=@cs.psu.edu> melling@cs.psu.edu (Michael D Mellinger) writes:
>>If my program is in someone's path, how can I tell where it's located
>>so that I can get the supporting files that are needed with it?
>
>This is real easy in DOS.  argv[0] is the full pathname of the invoking
>process.  I often do something like this:
     This is true in operating systems other than DOS, I believe.  Unix,
for example.
> [Code removed]
>
>Now I can have a program act differently just by copying it to another
>name and creating a new config file.  Now if only DOS used file links
>like Unix I wouldn't waste disk space doing so.
>
    I'm working on it.  *evil grin*
>
>-- 
>D'Arcy J.M. Cain (darcy@druid)     |
>D'Arcy Cain Consulting             |   There's no government
>Toronto, Ontario, Canada           |   like no government!
>+1 416 424 2871                    |

                                                      --  Morgan Schweers
-- 
mrs@netcom.com   |   Morgan Schweers   |  Good code, good food, good sex.  Is
ms@gnu.ai.mit.edu|   These messages    |  anything else important?  --  Freela
Kilroy Balore    |   are not the       +--------------------------------------
Freela           |   opinion of anyone.|  I *AM* an AI.  I'm not real...
