Previous Topic: Initialization File (.ini) FunctionsNext Topic: DeleteIniSection - Remove a Section in an Initialization File


DeleteIniEntry - Remove an Entry in an Initialization File

Valid on Windows only

The DeleteIniEntry function removes a specified entry in a specified section of a specified initialization (.ini) file.

Function format:

DeleteIniEntry(section as String, entry as String, filename as String) as Boolean
section

Identifies the section that contains the entry.

entry

Identifies the entry to be deleted.

filename

Identifies the name of the initialization (.ini) file.

On successful completion, the function returns TRUE; otherwise, returns FALSE.

Example:

Rem By deleting the file Ncclient.ini a new workstation name detect 
Rem will be forced next time the AM agent is executed.
Rem 
DeleteFile(ComputerPath+"Ncclient.ini")
Rem ComnputerPath is an Asset Management constant