#20111 - 2002-04-18 07:04 PM
Re: limit
|
arshepp
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
|
|
|
|
#20113 - 2002-04-18 07:16 PM
Re: limit
|
arshepp
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
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.
|
|
Top
|
|
|
|
#20115 - 2002-04-19 04:39 AM
Re: limit
|
MCA
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.
|
|
Top
|
|
|
|
#20117 - 2002-04-20 09:28 PM
Re: limit
|
MCA
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.
|
|
Top
|
|
|
|
#20119 - 2002-04-23 12:29 AM
Re: limit
|
Kdyer
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 ]
|
|
Top
|
|
|
|
#20121 - 2002-04-23 02:01 AM
Re: limit
|
MCA
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.
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 764 anonymous users online.
|
|
|