🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #3767

Re: locating boot.ini

#3767
From: Mike Collins
Date: Tue, 09 May 2006 13:27
38 lines
2737 bytes
Hi guys,

thanks for the replies, sorry if I haven't made my self very clear...

I know how to programmable search for a file and how to get the logical 
drives that are available.  What I was primarily wondering was if there was 
an api like GetSystemDirectory() that I could use to locate the ware abouts 
of boot.ini.  As has been pointed out here, boot.ini does not always exists 
and it is a hidden file, but it also does not HAVE to exist on c: either. 
Depending on how this system was set up, it may appear in other drives and I 
believe that it is possible to have more than one boot.ini on the system.  I 
need to check this file for just that reason i.e. to see if there are any 
other, working OS's installed.

I know that I can recurs through each drive and find this file but I wanted 
to know if there was any other method.

Particular thanks to Nate for that purl...



"Mike Collins" <its@TheBottomOfThePost.com> wrote in message 
news:44606967@newsgroups.borland.com...
> Hi all, just a quickie, ive search MSDN and MS newsgroups to no avail so I 
> thought I'd ask the real experts :)
>
> I need to load and read some information from boot.ini but I'm faced with 
> the problem of locating it.  I can't seem to find any information on if it 
> is always stored on c:\... or if it can reside on other drive letters. 
> Also, I can't find if it's possible to have multiple boot.ini files 
> residing on a machine.  Finally does anyone know if there is a particular 
> reg key or apis that specifics / returns the current boot.ini location for 
> the active windows version?
>
> Many thanks in advance,
>
> Mike C
> 
Technical Details
Message-ID: <446098c1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.ispa.de!news.albasani.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail
References: <44606967@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,96aff176f11cc858
X-Google-Attributes: gid10cc67,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Mike Collins" <its@TheBottomOfThePost.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <44606967@newsgroups.borland.com>
Subject: Re: locating boot.ini 
Date: Tue, 9 May 2006 14:27:29 +0100
Lines: 40
Organization: SDA Ltd
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.3790.2663
X-RFC2646: Format=Flowed; Response
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.2663
NNTP-Posting-Host: 81.2.92.14
Message-ID: <446098c1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1147181249 81.2.92.14 (9 May 2006 06:27:29 -0700)
Path: arc1-ca.pugleaf.net!g2news2.google.com!news3.google.com!news.glorb.com!feeder.enertel.nl!nntpfeed-01.ops.asmr-01.energis-idc.net!216.196.110.149.MISMATCH!border2.nntp.ams.giganews.com!nntp.giganews.com!newsfeed.freenet.de!news.ispa.de!news.albasani.net!reader.uucp.at!feeder02.uucp.at!newsfeed.uucp.at!news.uucp.at!newsgroups.borland.com!not-for-mail