Page 1 of 1 1
Topic Options
#20104 - 2002-04-19 12:44 AM limit
2hotty Offline
Getting the hang of it

Registered: 2002-04-09
Posts: 76
Loc: London
just a quick question guys. When i placed 6 users on my logon scipt. The sixth user's script did not work but when i took another user off of my script the sixth user worked. I have been using If & EndIf for each user code. I have now changed my script name to login.scr to try and resolve the problem but i didnt know that there was a limit on how many IF and EndIf's you could have. Anyone want to shed any light on the situation please?
_________________________
Any problem encountered is a challenge to overcome.

Top
#20105 - 2002-04-19 12:47 AM Re: limit
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
there is no limitation set by kix.
only limitation is in wksta's memory size but it will not be eaten up by six if's.

there must something else.
_________________________
!

download KiXnet

Top
#20106 - 2002-04-18 01:54 PM Re: limit
Jochen Administrator Offline
KiX Supporter
*****

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

the most common cause for the problem you have is a discrepancy in the amount of if's vs. endif's ...

just to be sure : count them

Or you may just post your code here ?

J.
_________________________



Top
#20107 - 2002-04-18 02:12 PM Re: limit
2hotty Offline
Getting the hang of it

Registered: 2002-04-09
Posts: 76
Loc: London
here u go.

[ 22 April 2002, 14:08: Message edited by: 2hotty ]
_________________________
Any problem encountered is a challenge to overcome.

Top
#20108 - 2002-04-18 02:16 PM Re: limit
Lonkero Administrator Offline
KiX Master Guru
*****

Registered: 2001-06-05
Posts: 22346
Loc: OK
well...

it seems to be syntax problem...

check the line If @userid = 'jaymie"

use either ' or ".
when they are mixed... well it's not anymore so simple.
when opened with ' it will never be closed without second ' even if there is thousand " in the middle.

cheers,
_________________________
!

download KiXnet

Top
#20109 - 2002-04-18 02:18 PM Re: limit
2hotty Offline
Getting the hang of it

Registered: 2002-04-09
Posts: 76
Loc: London
u r the man lonkero
_________________________
Any problem encountered is a challenge to overcome.

Top
#20110 - 2002-04-18 02:51 PM Re: limit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Scottwright,
In the context you're using IF @UserID statements, you should use SELECT CASE instead as there can only be one true.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#20111 - 2002-04-18 07:04 PM Re: limit
arshepp Offline
Fresh Scripter

Registered: 2002-03-18
Posts: 41
Loc: California
scott hit on something that as a new user I am unaware of. What is the significance of login.scr? Right now my script is a *.kix. Am I losing out on something? Thanks.
Top
#20112 - 2002-04-18 07:10 PM Re: limit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Actually, you can use any extension you want... to a degree.

Most people pass the script name as a parameter on the command line. In absence, it will search for certain .kix or .scr files.

quote:
By default, KiXtart automatically looks for a personal script for the current user (“Username.KIX”). If it does not find one, it looks for the default script, “KIXTART.KIX”. You can override this behavior by specifying one or more scripts after Kix32.exe on the commandline. If an extension is not specified, KiXtart attempts to use two default extensions: ”.KIX” and “.SCR”.


_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#20113 - 2002-04-18 07:16 PM Re: limit
arshepp Offline
Fresh Scripter

Registered: 2002-03-18
Posts: 41
Loc: California
Makes perfect sense. Thanks!
Top
#20114 - 2002-04-19 04:38 AM Re: limit
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Another way of checking your script can be done by our tool kixstrip,
which you can find on our site.
Currently there are three versions
  • kixstrip363.exe (= kixtart 3.63)
  • kixstrip400.exe (= kixtart 4.00, 4.01, 4.02)
  • kixstrip410.exe (= kixtart 4.10 beta 1)
The output of our call kixstrip410 input.kix output.kix /block_check /show_structurewas:
code:
 ;Casio Logon script for Printers and Shared Network drives

? 'Kixtart Login Script'
? 'Username : ' + @userid
? 'Computer : ' + @wksta

SETTIME "\\essbase_1"

IF @userid = 'wrights'
USE t: "\\fileserver\net_share"
USE i: "\\qs4433778\qdls" /user:gscott /password:gscott
USE s: "\\essbase_1\loaddata"
AddPrinterConnection ("\\hrtc\claser1")
AddPrinterConnection ("\\hrtc\claser2")
AddPrinterConnection ("\\hrtc\teklaser")
SetDefaultPrinter ("\\hrtc\claser1")
ENDIF

IF @userid = 'lloydc'
USE t: "\\fileserver\net_share"
AddPrinterConnection ("\\hrtc\ecrclaser")
AddPrinterConnection ("\\hrtc\ecrlex")
SetDefaultPrinter ("\\hrtc\ecrlex")
ENDIF

IF @userid = 'fletchers'
USE t: "\\fileserver\net_share"
AddPrinterConnection ("\\hrtc\mtdlaser2")
AddPrinterConnection ("\\hrtc\teklaser")
SetDefaultPrinter ("\\hrtc\mtdlaser2")
ENDIF

IF @userid = 'gursoy'
USE t: "\\fileserver\net_share"
USE i: "\\qs4433778\qdls" /user:ipek /password:mehmet
USE l: "\\mailfax\viking"
USE s: "\\essbase_1\loaddata"
USE u: "\\moes\mobilelinkweb"
USE v: "\\eplanserver\eplan"
AddPrinterConnection ("\\hrtc\claser3")
SetDefaultPrinter ("\\hrtc\claser3")
ENDIF

IF @userid = 'jaymie"
USE t: "\\fileserver\net_share"
USE i: "\\qs4433778\qdls" /user:casio /password:casio
USE s: "\\essbase_1\loaddata"
AddPrinterConnection ("\\hrtc\claser1")
AddPrinterConnection ("\\hrtc\claser2")
AddPrinterConnection ("\\hrtc\teklaser")
SetDefaultPrinter ("\\hrtc\claser1")
ENDIF

IF @userid = 'becklesw'
USE t: "\\fileserver\net_share"
USE i: "\\qs4433778\qdls" /user:gscott /password:gscott
USE s: "\\essbase_1\loaddata"
USE v: "\\eplanserver\eplan"
AddPrinterConnection ("\\hrtc\claser1")
AddPrinterConnection ("\\hrtc\claser2")
AddPrinterConnection ("\\hrtc\teklaser")
SetDefaultPrinter ("\\hrtc\claser1")
ENDIF

;($begin)
;
; fri 19-apr-2002 04:03:25 (kix 4.10 vs 3.04e)
;
;Summary KIXSTRIP: block structures
; - do:until [0:0]
; - for|each:in|to:step|next [0|0:0|0:0|0]
; - function:endfunction [0:0]
; - if:else:endif [6:0:6]
; - select:case:endselect [0:0:0]
; - while:loop [0:0]
;Warning KIXSTRIP: 1 line is incompleted.
; rerun program with option "/block_check /show_errors".
;Warning KIXSTRIP: some lines contains errors or possible errors.
; 1 line incomplete "single quotation".
; 1 line incompleted.
;Informative KIXSTRIP: 6 block_structures found.
;Informative KIXSTRIP: no UDF's found.
;Informative KIXSTRIP: no labels found.
;Summary KIXSTRIP: BREAK CALL DEBUG DISPLAY ENDFUNCTION EXECUTE EXIT FUNCTION GET GETS GOSUB GOTO OLExxx PLAY QUIT RETURN RUN SHELL SLEEP THEN USE
;Informative KIXSTRIP: 18 USE
;
;($end)
;($begin)
;
;Warning KIXSTRIP: 44 line incomplete "single quotation".
;Warning KIXSTRIP: 44 line incompleted.
;
;($end)

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#20115 - 2002-04-19 04:39 AM Re: limit
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Les,

We will warn users with using kix32.exe as call statement.

First it can return unexpected results, when f.e. user specifies
his own script or kixtart can find a script for execution.
In our opinion the best way for running scripts is to specify the
complete path of your scripts in the kix32.exe call.

Secondly the latest Kixtart 4.10 build 84 release will only return
help information and will not run any script at all
(see our topic http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=3;t=000302)

greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#20116 - 2002-04-19 02:37 PM Re: limit
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
MCA,
I tested the issue you raised with 4.1 beta and found that it will in fact search the current directory for kixtart.kix as does previous versions. The only change from previous versions is that it no lognger returns an error but rather spits out help.
I do not advocate the use of this search feature and would advise everyone to specify a full or relative path to the script.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#20117 - 2002-04-20 09:28 PM Re: limit
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear Les,

Your investigation about kix32.exe completes the story. So
Ruud makes it look much better without changing previous function.
greetings.

btw: we have update our beta topic (no.F3-303) about this too.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

Top
#20118 - 2002-04-22 11:45 PM Re: limit
badboii Offline
Fresh Scripter

Registered: 2002-03-07
Posts: 32
Loc: Seattle, WA
I would love to use kixstrip400.exe but I keep getting the following error when I try to run it from the command line: " Abort KIXSTRIP: file not found "

I typed in:
kixstrip400 citylogin.k2k newlogin.k2k /block_check /show_structure

Any ideas?
brian_zamora@hotmail.com
_________________________
========================== Brian Zamora Computer Technician brian_zamora@hotmail.com ==========================

Top
#20119 - 2002-04-23 12:29 AM Re: limit
Kdyer Offline
KiX Supporter
*****

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

Is Kixstrip in the same directory that you are running it from? Or, is it in the search path?

Here is how we are doing this with a Batch file:

code:
IF EXIST %TEMP%\scr.BAT DEL %TEMP%\scr.BAT
%comspec% /c GETVAR.EXE -v FN -f %TEMP%\scr.BAT "Enter the Kixscript minus the extension: "
::@echo on
CALL %TEMP%\scr.BAT
set zInput=%FN%
pause
%0\..\kixstrip400.exe %FN%.kix %FN%.out /BC /Headers /Print /SE /SS /TAB=6 /Translate
Echo we are done!!
pause
IF EXIST %TEMP%\scr.BAT DEL %TEMP%\scr.BAT
cls

You can find GETVAR from our website - http://win-scripts.com ..

This is also found in the FAQ Section as - How do we check and format code for scripts?

HTH,

- Kent

[ 23 April 2002, 00:31: Message edited by: kdyer ]
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's

Top
#20120 - 2002-04-23 12:55 AM Re: limit
badboii Offline
Fresh Scripter

Registered: 2002-03-07
Posts: 32
Loc: Seattle, WA
Hey Guys,

Should my script be "in a certain way" before kixstrip400.exe will work?

I'm running Win2k sp2 I'm trying to do a test doing this from the c prompt.

c:\kixstrip400.exe citylogin.k2k output.k2k /show_structure

And the only reponse is KIXSTRIP: file not found.

I have kixstrip400.exe in the same directory (root directory c:\ )

I dunno I also downloaded other copies of Kixstrip and it still doesn't work? Go figure....
_________________________
========================== Brian Zamora Computer Technician brian_zamora@hotmail.com ==========================

Top
#20121 - 2002-04-23 02:01 AM Re: limit
MCA Offline
KiX Supporter
*****

Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
Dear,

Thanks for your support of kixstrip tool.
Your problem is that you are using long filenames. Current version is restricted
to 8.3 format.
See related topic
http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=2;t=001943
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA

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 764 anonymous users online.
Newest Members
ManuvdWielNL, Sir_Barrington, batdk82, StuTheCoder, M_Moore
17887 Registered Users

Generated in 0.075 seconds in which 0.027 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