MSFN Forum: Boot.ini Add line - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Boot.ini Add line Rate Topic: -----

#1 User is offline   sfamonkey 

  • Junior
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 22-July 04

  Posted 06 August 2004 - 06:03 AM

I need to add a line to my boot.ini during setup. How can I do this. I'm I able to program something in vb and then make an exe and excute it during the install if so how can I write or can I use cmd?

thanks in advance


#2 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 06 August 2004 - 07:24 AM

I've had that prob with batch scripts before, how I wanted to change the winnt.sif via batch. Only solution I coud find. Is Gzar. Allows you to change text, replace and whatever to inis, textfiles etc. Put it in your $OEM$\$$\System32 directory and use your batch to "GZAR Blah Blah Blah".

#3 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 06 August 2004 - 07:27 AM

Sorry, forgot the attachment for above. :)

Attached File(s)

  • Attached File  GSAR.zip (28.43K)
    Number of downloads: 33


#4 User is offline   sfamonkey 

  • Junior
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 22-July 04

Posted 06 August 2004 - 07:35 AM

Would you explain more. I get that I donwload the file and send it to system32 but then what do I do? Like to I write

GZAR C:\boot.ini multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP DBS" /fastdetect /kernel=oemkrnl.exe

For Gzar is the program for C:\boot.ini is the file and for multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP DBS" /fastdetect /kernel=oemkrnl.exe is the line I need add

#5 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 06 August 2004 - 08:30 AM

I can do a batch command to add to it. With Gsar

echo C:\boot.ini multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP DBS" /fastdetect /kernel=oemkrnl.exe>>c:\boot.ini

#6 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 06 August 2004 - 08:32 AM

Sorry, mean't without Gsar.
>> makes the output go to your boot.ini :)

#7 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 06 August 2004 - 08:41 AM

goto start > run > cmd

bootcfg /?

i think thats what u want

#8 User is offline   ravashaak 

  • Dirty Dolphin
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 07-January 04

Posted 06 August 2004 - 08:57 AM

The win32 version of sed may also be useful in such a situation.

- Ravashaak

#9 User is offline   sfamonkey 

  • Junior
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 22-July 04

Posted 06 August 2004 - 09:01 AM

MCT I think that what I want but I have xp home. So I get an error saying that it doesn't know the command.

MHz Thanks for the help but I was wonder if any one could help me more.

[boot loader]
timeout=3
default=multi(0)disk(0)rdisk(0)partition(1)\WINDOWS
[operating systems]
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Windows XP DBS" /fastdetect /kernel=oemkrnl.exe
multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows XP Home Edition" /fastdetect

This is my boot ini. I need to right to the boot.ini to tell it to change the timeout to 3 cause when you reinstall windows it's defualt is 30 and then I also need it to make DBS defualt. I want to do this automatically. So I all I have to do is right a cmd and tell RunOnceEx.cmd to run it

#10 User is offline   sfamonkey 

  • Junior
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 22-July 04

Posted 06 August 2004 - 09:02 AM

ravashaak would yo explain in more detial?

#11 User is offline   MCT 

  • MSFN Junkie
  • PipPipPipPipPipPipPipPipPip
  • Group: Members
  • Posts: 3,288
  • Joined: 19-May 04

Posted 06 August 2004 - 09:42 AM

i thought xp home had bootcfg?

but heres the code u use if u do have bootcfg

bootcfg /Timeout 3

did u type it correctly? also.. its in %windir%\System32

#12 User is offline   sfamonkey 

  • Junior
  • Pip
  • Group: Members
  • Posts: 77
  • Joined: 22-July 04

Posted 06 August 2004 - 02:49 PM

I don't have it. Nope. It not in C:\windows\system32

#13 User is offline   ravashaak 

  • Dirty Dolphin
  • PipPip
  • Group: Members
  • Posts: 162
  • Joined: 07-January 04

Posted 07 August 2004 - 07:56 PM

SED can be used to edit text files from the command line. Originally a UNIX utility, it is now available for use in a windows command line environment. Just download the zip file from the url below and extract the sed.exe file. Next, place the file in your %systemroot%\system32 directory and you should be good to go.

It may take a little practice to get the hang of this command's syntax, but once you do, you'll have a powerful and extremely handy new tool. :) If you get stuck, do a web search for sed tutorials or maybe sed syntax.

Here's the link:

http://unxutils.sourceforge.net/UnxUtils.zip

Best of luck!

- Ravashaak

#14 User is offline   maxXPsoft 

  • MSFN Master
  • Group: Developers
  • Posts: 2,519
  • Joined: 14-November 03
  • OS:Windows 7 x64
  • Country: Country Flag

Posted 08 August 2004 - 07:02 AM

sfamonkey
You can use a write to ini in VB and it will do it with no problem easily. Only thing is first Shell out and attrib -R it first. Sometimes it's Read only.

Here's an excellent .bas module I use which I have found is easiest
INI files - made easy

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy