Page 1 of 1 1
Topic Options
#74488 - 2003-04-11 11:37 PM KIX - Case Ingroup Statements
qboyd00 Offline
Fresh Scripter

Registered: 2002-04-25
Posts: 15
I am using case statements to determine certain ingroups of all of my offices....and calling office specific scripts if they are a member of that group..........I have encountered a strange issue.......It has happened twice now.....on one of my case statements

Case InGroup("us-gvl")
Call "\\$hs\scripts$\office\us-gvl.kix" \

that statement has always worked and I used the case ingroup statement for 15 or so offices and have never had a problem.....a few months ago I had an issue where it was running all of my scripts and when it got to the end calling the specific office scripts it would error......script error failed to find/open scipt....I deleted the kix file and copied it back and it worked again. I am having that issue again and curious if anyone has seen this occur before and if anyone has any advice.

Top
#74489 - 2003-04-11 11:44 PM Re: KIX - Case Ingroup Statements
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
Is the last slant "\" a typo?

Also, do you have a "case 1" as your last case condition. If not, I recommend using one. You can use "case 1" to capture errors, or other commands.

code:
select
case $a = 1
case $a = 2
case 1
? @serror
shell "%comspec% /c pause"
endselect



[ 11. April 2003, 23:50: Message edited by: BoxKite ]
_________________________
Box
FACTA NON VERBA

Top
#74490 - 2003-04-12 12:19 AM Re: KIX - Case Ingroup Statements
Sealeopard Offline
KiX Master
*****

Registered: 2001-04-25
Posts: 11165
Loc: Boston, MA, USA
You might want to try this:
code:
  Call '\\'+$hs+'\scripts$$\office\us-gvl.kix'

Doubling of special characters is docuemnted in the KiXtart Manual page 25.
_________________________
There are two types of vessels, submarines and targets.

Top
#74491 - 2003-04-12 12:23 AM Re: KIX - Case Ingroup Statements
Kdyer Offline
KiX Supporter
*****

Registered: 2001-01-03
Posts: 6241
Loc: Tigard, OR
Box,

Suggestion...

Instead of -

shell "%comspec% /c pause"

You could do a -

?"Press any key"
get $k

HTH,

Kent
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#74492 - 2003-04-16 09:11 PM Re: KIX - Case Ingroup Statements
BoxKite Offline
Da Box
*****

Registered: 2000-05-17
Posts: 282
Loc: Vacaville,CA,USA
Exact-i-moon-do. I do it that way to. My perferred way when testing code.

Of course, I like to do it other ways too. [Eek!] [Big Grin]

[ 16. April 2003, 21:12: Message edited by: BoxKite ]
_________________________
Box
FACTA NON VERBA

Top
Page 1 of 1 1


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

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

Generated in 0.133 seconds in which 0.095 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