Page 1 of 1 1
Topic Options
#124796 - 2004-08-12 12:02 PM Quick question
Anonymous
Unregistered


Hi guys. Someone has made a change to our kixscript accidentally and this issue is holding up logins to a system.
I have never used kix before and qwas just wondering if you could tell me how you check for the existense of a file and if the file exists do not process the remaining code. This issue relates to a grouping. So if in group do this. If a file exists go to the end and stop running the script. Hope this makes sense.

Top
#124797 - 2004-08-12 12:10 PM Re: Quick question
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
Code:

if ingroup("[domain]\group")
if exist("[Path]\file.ext")
quit 1
endif
endif



is what I would interpret your question ...

hth
_________________________



Top
#124798 - 2004-08-12 12:29 PM Re: Quick question
Anonymous
Unregistered


Thats great thanks
Top
#124799 - 2004-08-12 12:32 PM Re: Quick question
Anonymous
Unregistered


Does this look right to you?

if ingroup("nw2_AntiV")
if not exist("c:\epoagent\agent.ini")
if exist("c:\sdat4385.txt")
quit 1
endif
copy "t:\AntiV\sdat4385.txt" "c:\"
del "c:\sdat*.exe"
display "t:\AntiV\NW2_AVcopying.txt"
copy "t:\AntiV\sdat4385.xex" "c:\sdat4385.exe"
shell "c:\sdat4385.exe /silent /f"
display "t:\AntiV\NW2_AVcompleted.txt"
endif
endif

Top
#124800 - 2004-08-12 03:40 PM Re: Quick question
Jochen Administrator Offline
KiX Supporter
*****

Registered: 2000-03-17
Posts: 6380
Loc: Stuttgart, Germany
yep,

the code seems to be valid ... no syntactical glitches to see
If it does what you want, that's ok
_________________________



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
1 registered (Henriques) and 2516 anonymous users online.
Newest Members
fgarcia, Viginette, ManuvdWielNL, Sir_Barrington, batdk82
17889 Registered Users

Generated in 0.03 seconds in which 0.015 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