Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!rutgers!uwvax!umn-d-ub!umn-cs!bungia!orbit!pnet51!glamdrng
From: glamdrng@pnet51.orb.mn.org (Rocky Lhotka)
Newsgroups: comp.sys.amiga.tech
Subject: Re: Want multiple default directories
Message-ID: <1153@orbit.UUCP>
Date: 26 Sep 89 22:45:05 GMT
Sender: root@orbit.UUCP
Organization: People-Net [pnet51], Minneapolis, MN.
Lines: 22

While the argv[0] as it stands serves a function, I do feel that it is
important for a program to determine from where it was run.  Maybe not
manditory, but certainly nice.  For instance, under VMS you can find the name
of your executing image, thereby allowing you to look at that location for
data and/or configuration files, etc.

Most Amiga programs put config files in s: and other files in various
'standard' (though not really...) locations, but wouldn't installation of a
program be much easier (nicer for a non-techie user) if you could just move
the drawer icon to your hard drive or whereever and run the program, the
program of course can get the pathname under which it was run and thereby can
automatically find it's config and data files?

While this is just one possible situation where this might be useful, I am
sure there are other situations where it would be very useful.  Persoanlly I
use this feature under VMS quite a lot for the above stated reason - ease of
use and ease when moving the files.


UUCP: {amdahl!bungia, uunet!rosevax, crash}!orbit!pnet51!glamdrng
ARPA: crash!orbit!pnet51!glamdrng@nosc.mil
INET: glamdrng@pnet51.orb.mn.org