Re: Determine current boot.ini partition booted into

From: siliconpi (siliconpiNOSPAM_at_hotpop.com)
Date: 09/03/04


Date: 3 Sep 2004 07:06:14 -0700

Hi Billy,

I'm trying to build a program that will do this for me. The reason is
that within our company, we have a lot of test machines where people
have installed these OSes. Now, if someone else comes along and looks
at this startup screen - he's going to be confused as to which OS
containing the customization he needs...

I do need to write a program that can do this for me. By having this
in place, I can quickly rename the boot partition without worrying
about what boot.ini entry I selected at the time of bootup. Trust me,
when you've seen 14-15 machines, all like this, you'll have no clue as
to what entry you selected at boot up...

Thanks.

"Billy" <Noone@home.spamnet> wrote in message news:<LoUZc.1637$N4.462@newsread3.news.pas.earthlink.net>...
> I repeat.
> Use the hidden boot.ini file and edit with any text editor (notepad will
> do). You may change the part with in the parenthesis. See above post. No
> program needed.
>
> "siliconpi" <siliconpiNOSPAM@hotpop.com> wrote in message
> news:eb6ae965.0409022100.1ec5f595@posting.google.com...
> > Sorry for not being clear. Here's the background. In our testing we
> > have machines with several of the same OSes on them. So on boot up,
> > the user is presented with a screen like:
> >
> > Microsoft Windows XP Professional
> > Microsoft Windows XP Professional
> > Microsoft Windows XP Professional
> > Microsoft Windows XP Professional
> >
> > Which isn't very helpful.
> >
> > What i'm trying to achieve is that - when the user selects one of
> > these and boots into that OS.. he can then examine the system and see
> > "oh this is the Windows XP with Office in it" and then run a tool:
> >
> > RenameBootEntry "WinXP with office"
> >
> > Which renames the APPROPRIATE boot.ini entry with this text.
> >
> > I'm okay with writing a VBS/WBS script or some batch scripting... that
> > would be the simplest way of handling it. This tool will only be run
> > on Win2000*, WinXP* and Win2003 Server*
> >
> > Thanks!
> >
> >
> > "Ricardo M. Urbano - W2K/NT4 MVP" <rmu1@columbiaSPAM.SUCKSedu> wrote
> in message news:<4137702C.6964CD57@columbiaSPAM.SUCKSedu>...
> > > siliconpi wrote:
> > > >
> > > > Hi,
> > > >
> > > > I need to determine which boot.ini setting the user chose when
> > > > selecting entries at the boot screen. My boot.ini reads as:
> > > >
> > > > [boot loader]
> > > > timeout=30
> > > > default=multi(0)disk(0)rdisk(0)partition(2)\WINDOWS
> > > > [operating systems]
> > > > multi(0)disk(0)rdisk(0)partition(2)\WINDOWS="Microsoft Windows XP
> > > > Professional" /fastdetect
> > > > multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows Server 2003,
> > > > Enterprise" /fastdetect
> > > >
> > > > If the user chooses Windows Server 2003, how do I determine that
> fact
> > > > exactly?
> > > >
> > > > I need to modify this entry (in boot.ini) later on. (I'm trying to
> > > > build a tool that renames the current systemdrive entry in
> boot.ini to
> > > > something more descriptive than the above - ie, what the user
> > > > chooses).
> > > >
> > > > Thanks!
> > >
> > > I'm not exactly sure I understand what you are trying to accomplish,
> but
> > > the environment variable, %SystemDrive%, contains the boot volume
> drive
> > > letter, IOW, the drive letter that NTx is installed to.
> > >
> > > hth



Relevant Pages

  • Re: Problem Reinstalling Windows XP
    ... It wouldn't boot from any of them, though all worked fine in other machines. ... It did boot & allow me to install from a COPY of one of the CDs. ... I tried using both the Microsoft Windows ...
    (microsoft.public.windowsxp.general)
  • Re: With Tiger is OS 9 pointless?
    ... > partitions on machines which can't boot OS 9. ... Or perhaps the users have no apps which need Mac OS 9, ...
    (comp.sys.mac.system)
  • Re: New XP box will only boot in safe mode?
    ... Also, this is happening on two identical, new machines with the ... combination does boot in normal mode. ... You can access Event Viewer by selecting Start, Administrative Tools, ... done I had to install a couple of applications that some of the ...
    (microsoft.public.windowsxp.help_and_support)
  • Re: 2.6.22-rc1-mm1
    ... With these two patches in combination, previously failing machines ... patches but silently fail on boot with no output via earlyprintk. ... forward to v2.6.22-rc2-mm1 and that also fails. ... and decompressor into memory ok and execution passed to it normally. ...
    (Linux-Kernel)
  • RE:: freebsd7 on older machines
    ... older machines To: freebsd-questions@xxxxxxxxxxx Message-ID: ... i read somewhere that the older drives aren't supported by the installation cdrom. ... or i can setup the hd on another machine that does support the install cdrom and then transfer to the older machine. ... if i dd a hd onto another hd will i have a problem with the mbr and be unable to boot? ...
    (freebsd-questions)