Re: IniRenameSection
"valery_vi" <[email protected]> Thu, 13 Sep 2007 09:07:12 -0000
| Newsgroups | gmane.comp.windows.autoit.user |
|---|---|
| Message-ID | <[email protected]> |
Hi Rick! It's easy trick, I think. You have to write: ;Name of INI file $FileName = @ScriptDir & "My.ini" ;Name of old Topic in INI file $OldName = "Your old section name" ;Name of new Topic in INI file $NewName = "Your new section name" $res = IniRenameSection ( $FileName, $OldName, $NewName) if Not $res then MsgBox(0,'Error!','The topic with name ' & $NewName & ' already exists!') endif Valery --- In [email protected], "Sensei J. Richard Kirkham B.Sc" <tutor2000@...> wrote: > > $res = IniRenameSection(@ScriptDir & "My.ini", "MySection", "MyNewSection",1) > > So this makes it a var but how do I actually rename the section in the ini file? > > Thanks > > Rick > > [Non-text portions of this message have been removed] >