Path: 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: Date: 27 Jun 91 06:00:42 GMT References: <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 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.