From: Eli Zaretskii Newsgroups: comp.os.msdos.djgpp,comp.os.msdos.programmer Subject: Re: Detecting Windows and Windows directory from DOS Date: Wed, 15 Mar 2000 14:04:12 +0200 Organization: NetVision Israel Lines: 18 Message-ID: References: <8am5ub$o0v$1 AT news6 DOT svr DOT pol DOT co DOT uk> <38CF1D17 DOT 688A9870 AT yahoo DOT com> <38CF586F DOT F81DF765 AT yahoo DOT com> NNTP-Posting-Host: is.elta.co.il Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Trace: news.netvision.net.il 953122014 5857 199.203.121.2 (15 Mar 2000 12:06:54 GMT) X-Complaints-To: abuse AT netvision DOT net DOT il NNTP-Posting-Date: 15 Mar 2000 12:06:54 GMT X-Sender: eliz AT is In-Reply-To: <38CF586F.F81DF765@yahoo.com> To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Errors-To: dj-admin AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Wed, 15 Mar 2000, Outsider wrote: > Eli Zaretskii wrote: > > > > On Wed, 15 Mar 2000, Outsider wrote: > > > > > If win.com is in the path... > > > > Won't this fail if there are more than a single Windows installation on > > the machine in question? > > No, it won't fail, it will stop after finding the first one in > the path. That's what I meant by ``fail'': the first file it finds does not necessarily live in the directory we are looking for, because it might belong to the version of Windows other than what we booted.