IniDelete

Removes a line or section from WIN.INI.

Syntax:

IniDelete (section, keyname)

Parameters:

(s) section the major heading under which the item is located.

(s) keyname the name of the item to delete.

Returns:

(i) always 0

 

This function will remove the specified line from the specified section in WIN.INI. You can remove an entire section, instead of just a single line, by specifying a keyword of @WHOLESECTION. Case is not significant in section or keyname.

Note: INI files are mapped to registry

Windows Vista/2008 and newer: This function may require an Administrator level account because the WIN.INI is located within a protected directory: 'Windows'.

Examples:
IniDelete("Desktop", "Wallpaper")
IniDelete("Quicken", @WHOLESECTION)
Message("IniDelete","Ini Deleted.")
See Also:

IniDeletePvt, IniItemize, IniRead, IniWrite