Pity

In that case, this should work:
Code:
$ValueX=MyReadProfileString("X:\test.ini","Test","Test")
If @ERROR
"Cannot check - failed to read value from X:" ?
"Error was: "+@ERROR+", "+@SERROR ?
Else
$ValueD=MyReadProfileString("D:\test.ini","Test","Test")
If @ERROR
"Cannot check - failed to read value from D:" ?
"Error was: "+@ERROR+", "+@SERROR ?
Else
If $ValueX <> $ValueY
"Values do not match" ?
EndIf
EndIf
EndIf

Function MyReadProfileString($sFile,$sSection,$sValue)

If ReadProfileString($sFile,"","")=""
If @ERROR Exit @ERROR Else Exit 2 EndIf
EndIf

$MyReadProfileString=ReadProfileString($sFile,$sSection,$sValue)
Exit 0
EndFunction