Hi everyone..pretty much a newbie here at Kix...wanted to see if you all can help with getting the second half of the OR statement to apply.

Seems to work fine for the first half of the IF statement but the part after OR doesnt seem to get processed...

Code:

$ICAclient = READVALUE("HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders","AppData")
$ICAtxtCompare = CompareFileTimes("f:\IPPAT\CitrixINIReplaced.txt","$ICAclient\ICAClient\CitrixINIReplaced.txt")
$ICATXTPATH = "$ICAclient\ICAClient\CitrixINIReplaced.txt"

If (Exist ($ICATXTPATH) = 0) or ($ICAtxtCompare = 1)
copy "f:\IPPAT\ini\appsrv.ini" "$ICAclient\ICAClient\"
copy "f:\IPPAT\ini\pn.ini" "$ICAclient\ICAClient\"
copy "f:\IPPAT\ini\CitrixINIReplaced.txt" "$ICAclient\ICAClient\"
Else
ENDIF