Jump to content

Recommended Posts

Posted

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

Posted

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

Posted

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..??

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
  • Recently Browsing   0 members

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