I added a fileexist() check and it found it ok. Below is the code I used.
I tested your method and it did work when the .ini file was in the same directory as the script. Does anyone know if the IniRead() function relies on a .ini file path that does not contain any spaces?
The test .ini is only 4 lines (97 bytes) and the full .ini is around 20-30 lines (496 bytes)
This is the code I used to test with the suggestions so far. It still does not work when the .ini file is not in the same directory as the script.
if FileExists(@ScriptDir & "\labs\R77.20 Standalone\LDConfig.ini") then MsgBox(0,"","It is there")
$Lab_LDConfig_Descript = IniRead(@ScriptDir & "\labs\R77.20 Standalone\LDConfig.ini", "Lab Description", "Description", "ERROR")
if $Lab_LDConfig_Descript = "ERROR" Then
MsgBox(0, "Error!", "Iniread returned ERROR!")
Else
MsgBox(0, "Success!", "Iniread returned " & $Lab_LDConfig_Descript)
EndIf