🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #7386

Re: Where's the executable located?

#7386
From: Tarjei Jensen
Date: Thu, 27 Jun 1991 06:00
38 lines
1920 bytes
I think that files should be searched for as follows.

if environment variable set then
 use it
 if file found goto success

if path in argv[0] then
  use it
  if file found goto success

use current directory
if file found goto success

use hardwired path
if file found goto success

:failed
exit gracefully or use reasonable defaults

:success
do whatever you want


Please note that the goto need not be taken literally (please).

I think one should be able to expect users to have a late version of MSDOS.
If we don't we are not going to get anywhere. It will become difficult to
phase out bad habits (e.g. writing directly to the screen) and use new tricks.
I feel sorry for people that cannot upgrade, but everybody can't stand still
just for those few. In other words; if msdos v5 proves to be good, then I
expect that I will have to upgrade to that version in order to use new
software. I think that is reasonable.

Greetings from Norway,  
--
// Tarjei T. Jensen - if it ain't broken, fix it anyway!
//    tarjeij@ulrik.uio.no       || +47 87 21138
// Working, but not speaking for the Norwegian National Library.
Technical Details
Message-ID: <TARJEIJ.91Jun27080042@ulrik.uio.no>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!cmcl2!uupsi!sunic!sics.se!ifi.uio.no!nuug!ulrik!tarjeij
References: <i8Hrm1=@cs.psu.edu> <1991Jun24.133431.10280@druid.uucp> <2613@gold.gvg.tek.com> <1991Jun25.174819.7992@netcom.COM> <745@sun4dts.dts.ine.philips.nl>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!cmcl2!uupsi!sunic!sics.se!ifi.uio.no!nuug!ulrik!tarjeij
From: tarjeij@ulrik.uio.no (Tarjei Jensen)
Newsgroups: comp.os.msdos.programmer
Subject: Re: Where's the executable located?
Message-ID: <TARJEIJ.91Jun27080042@ulrik.uio.no>
Date: 27 Jun 91 06:00:42 GMT
References: <i8Hrm1=@cs.psu.edu> <1991Jun24.133431.10280@druid.uucp>
 <2613@gold.gvg.tek.com> <1991Jun25.174819.7992@netcom.COM>
 <745@sun4dts.dts.ine.philips.nl>
Sender: news@ulrik.uio.no (Mr News)
Distribution: comp.os.msdos.programmer
Organization: University of Oslo, Norway
Lines: 38
In-Reply-To: derek@sun4dts.dts.ine.philips.nl's message of 26 Jun 91 14:53:08 GMT
Nntp-Posting-Host: ulrik