Page 1 of 1 1
Topic Options
#151625 - 2005-11-17 02:19 AM OR statement not working
Porthos Offline
Fresh Scripter

Registered: 2004-06-03
Posts: 6
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


Top
#151626 - 2005-11-17 02:30 AM Re: OR statement not working
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
it surely gets processed.
you already have the extra else there, so... add after that:
Code:

"icaTXTpath exists: " Exist($ICATXTPATH) ?
"and icaTXTcompare comes out other than 1: " $ICAtxtCompare

_________________________
!

download KiXnet

Top
#151627 - 2005-11-17 02:40 AM Re: OR statement not working
Porthos Offline
Fresh Scripter

Registered: 2004-06-03
Posts: 6
I saw my problem....dam and i looked at it a million times!

I was missing a folder in the path!

Thanks a lot!!

Top
Page 1 of 1 1


Moderator:  Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart 
Hop to:
Shout Box

Who's Online
0 registered and 1635 anonymous users online.
Newest Members
Viginette, ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder
17888 Registered Users

Generated in 0.049 seconds in which 0.023 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org