Jump to content

How to Add string to Boot.ini


eri
 Share

Recommended Posts

This my boot.ini in XP

[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="Microsoft Windows XP Professional" /noexecute=AlwaysOff /fastdetect /TUTag=PEHL5F /Kernel=TUKernel.exe

I want add

c:\Sample="Windows Sample AutoIT"

without change everything in original boot.ini just add

c:\Sample.ok="Windows Sample AutoIT" with autoit script..

Please Help me.. :D

Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Boot.ini should never need touched/edited! doing so can cause boot-up failure. I'm sure you can see where this will lead.

010101000110100001101001011100110010000001101001011100110010000

001101101011110010010000001110011011010010110011100100001

My Android cat and mouse game
https://play.google.com/store/apps/details?id=com.KaosVisions.WhiskersNSqueek

We're gonna need another Timmy!

Link to comment
Share on other sites

I have create script but I wan delete title in Section

This is my script :

#include <GUIConstants.au3>
FileSetAttrib ("c:\boot.ini","-RASH")
$sIni = "C:\Boot.ini"
$sData = "c:\Sample=""Windows Sample AutoIT"""
IniWriteSection($sIni, "AutoIT", $sData)
$textfile = FileOpen("C:\boot.ini",0) 
$text = FileRead($textfile)
FileClose($textfile)

GUICreate("Boot.ini Info..???" , 400,400)

GUICtrlCreateEdit($text,5,5,390,390)
GUISetState(@SW_SHOW)
While 1
    $msg = GUIGetMsg()
    If $msg = $GUI_EVENT_CLOSE Then
        ExitLoop
    EndIf
WEnd

[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="Microsoft Windows XP Professional" /noexecute=OptOut /fastdetect /TUTag=PEHL5F /Kernel=TUKernel.exe

[AutoIT]

c:\Sample="Windows Sample AutoIT"

How to disable title [AutoIt]..??

I want like this :

[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="Microsoft Windows XP Professional" /noexecute=OptOut /fastdetect /TUTag=PEHL5F /Kernel=TUKernel.exe

c:\Sample="Windows Sample AutoIT"

Please help me again.. :D

Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Thank`s MvGulik..

Just learning script add sting read and delete.. In attrib file..

i have change

IniWriteSection($sIni, "AutoIT", $sData)

to

FileWrite($sIni, "AutoIT", $sData)

And If file have writed..

when run script again it will write again.. How to disable it again..??

I sorry for my english..

sampe

c:\Sample="Windows Sample AutoIT" c:\Sample="Windows Sample AutoIT"

i want disable in secon write..??

Link to comment
Share on other sites

whatever Edited by MvGulik

"Straight_and_Crooked_Thinking" : A "classic guide to ferreting out untruths, half-truths, and other distortions of facts in political and social discussions."
"The Secrets of Quantum Physics" : New and excellent 2 part documentary on Quantum Physics by Jim Al-Khalili. (Dec 2014)

"Believing what you know ain't so" ...

Knock Knock ...
 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...