home *** CD-ROM | disk | FTP | other *** search
/ PCNET 2006 September - Disc 1 / PCNET_CD_2006_09.iso / shareware / autoit-v3-setup.exe / Examples / Helpfile / IniReadSectionNames.au3 < prev    next >
Encoding:
Text File  |  2006-06-17  |  205 b   |  9 lines

  1. $var = IniReadSectionNames(@WindowsDir & "\win.ini")
  2. If @error Then 
  3.     MsgBox(4096, "", "Error occurred, probably no INI file.")
  4. Else
  5.     For $i = 1 To $var[0]
  6.         MsgBox(4096, "", $var[$i])
  7.     Next
  8. EndIf
  9.