WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

System INI and INI File Topics

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

Mapped INI Files

Keywords: 	  Mapped INI Files

Question:

(Using Winbatch 99D)

I have a script which is using INIItemizePvt to read an INI file and present the contents as a menu to the user. The syntax I'm using to read the sections of the file is as follows:

INIFILE=strcat(DirWindows(0),"PRINTERS.INI")
floors=iniitemizepvt("",INIFILE)
The second line above produces the error "Null section name not valid for mapped INI files". What's a mapped INI file? This script worked fine in Winbatch 97x.

Answer:

  1. Try...
    INIFILE=strcat(DirWindows(0),"PRINTERS.INI")
    if !FileExist(INIFILE)
    Message("Eeeop","might be a mapped file")
    endif
    floors=iniitemizepvt("",INIFILE)
    
  2. A mapped ini file is one that is not in a real ini file, but rather exists in the registry. When Inicommands are issued, instead of going to the file on disk, the ini settings in the registry are consulted instead.

Article ID:   W13341
Filename:   Mapped INI Files.txt
File Created: 1999:04:15:16:53:22
Last Updated: 1999:04:15:16:53:22