#9147 - 2001-06-04 10:43 PM
SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
My primary server is a winnt 4.0 and I have client machines that are windows 2000. When I log onto a winnt computer the script works but when logging on through windows 2000 to the 4.0 the script fails. Does anyone know of this being an issue or if other versions of kixtart will solve this problem.Thanks for all your help guys.
|
|
Top
|
|
|
|
#9150 - 2001-06-06 04:08 PM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
The version I am running is 3.63.Ok I've gotten the script to excecute on my windows 2000 systems but heres the catch. If any of my win2x systems anyone added to any local group the script will not work. It doesnt map anything at all. Please help, heres my script. And the $nul = Setconsole does not work on win2x either. CLS $nul = SETCONSOLE("MAXIMIZE") Color r+/n big ; Display in BIG character mode at (2,8) "Hello," at (12,10) @userid sleep 2 ; Wait for 3 secs (or key) if ingroup("AWELLEDS")=1 use w: \\posserver\wellstore use s: \\primarynt\inpes32 endif if ingroup("ARNAGRP")=1 use n: \\rnaserver\rnapgm endif if ingroup("AMASTAX")=1 use t: \\rnaserver\rnad use h: \\posserver\mas90 endif if ingroup("ARNAMASEDS")=1 use h: \\posserver\mas90 use n: \\rnaserver\rnapgm use s: \\primarynt\inpes32 endif if ingroup("AMEDEDS")=1 use m: \\posserver\medicode use s: \\primarynt\inpes32 endif if ingroup("ARNAEDS")=1 use n: \\rnaserver\rnapgm use s: \\primarynt\inpes32 endif if ingroup("DOMAIN_ADMINS")=1 USE F: \\POSSERVER\UTIL USE G: \\POSSERVER\CAM3 USE H: \\POSSERVER\MAS90 USE N: \\RNASERVER\RNAPGM USE P: \\POSSERVER\EVERYONE USE S: \\PRIMARYNT\INPES32 USE T: \\RNASERVER\RNAD USE W: \\POSSERVER\WELLSTORE endif use I: \\primarynt\public use J: \\primarynt\private use q: \\ntproxy\ltc_pharmacy if exist(@homeshr) @homeshr endif sleep 1 Color r+/n big ; Display in BIG character mode at (2,8) "Hello," at (12,10) @userid sleep 2
|
|
Top
|
|
|
|
#9152 - 2001-06-07 04:40 AM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
MCA
KiX Supporter
   
Registered: 2000-04-28
Posts: 5152
Loc: Netherlands, EU
|
Dear,We have look at your script and we have some remarks about it:
- we advise the usage of IF INGROUP("name") <> 0 instead
of = 1. When an user isn't member of any kind of group the result will be 0.
- first map the general mappings i, j & q.
(see lines 10..12)
- you are using the @homeshr macro to change from working
directory, but you doesn't map it. Our suggestion for mapping (Y-drive is our choose to get the script working):
code:
IF (len(@homeshr) > 0) use y: "@homeshr" ; <-- f.e. Y-drive will be used as homeshr. ; <-- you can also specified @homedrive value. ; <-- by specification of both the use command ; <-- will be: use @homedrive "@homeshr" ENDIF
The statement of @homeshr is something like \\server\user$, which isn't a legal chdir statement. The macro @homedrive is possible but we advise using - in this case - simply Y: as statement. (see lines 13..18, 61..67)
- using f.e. use s: \\server\drive twice may abort the script.
when users are only member of one group you doesn't need additional control code. (f.e. see lines 37, 42, 47)
Code can be (without debug) after reformatting:
code:
CLS IF SetConsole("MAXIMIZE") ENDIF COLOR r+/n BIG ; Display in BIG character mode At (2,8) "Hello," At (12,10) @userid SLEEP 2 ; Wait for 3 secs (or key) ; USE i: \\primarynt\public USE j: \\primarynt\private USE q: \\ntproxy\ltc_pharmacy IF (len(@homeshr) > 0) use y: "@homeshr" ; <-- f.e. Y-drive will be used as homeshr. ; <-- you can also specified @homedrive value. ; <-- by specification of both the use command ; <-- will be: use @homedrive "@homeshr" ENDIF ; IF Ingroup("AWELLEDS") <> 0 USE w: \\posserver\wellstore USE s: \\primarynt\inpes32 ENDIF IF Ingroup("ARNAGRP") <> 0 USE n: \\rnaserver\rnapgm ENDIF IF Ingroup("AMASTAX") <> 0 USE t: \\rnaserver\rnad USE h: \\posserver\mas90 ENDIF IF Ingroup("ARNAMASEDS") <> 0 USE h: \\posserver\mas90 USE n: \\rnaserver\rnapgm USE s: \\primarynt\inpes32 ENDIF IF Ingroup("AMEDEDS") <> 0 USE m: \\posserver\medicode USE s: \\primarynt\inpes32 ENDIF IF Ingroup("ARNAEDS") <> 0 USE n: \\rnaserver\rnapgm USE s: \\primarynt\inpes32 ENDIF IF Ingroup("DOMAIN_ADMINS") <> 0 USE f: \\posserver\util USE g: \\posserver\cam3 USE h: \\posserver\mas90 USE n: \\rnaserver\rnapgm USE p: \\posserver\everyone USE s: \\primarynt\inpes32 USE t: \\rnaserver\rnad USE w: \\posserver\wellstore ENDIF ; IF (len(@homeshr) > 0) IF (len(@homedrive) > 0) @homedrive ELSE y: ; <-- f.e. Y-drive will be used as homeshr. ENDIF ENDIF SLEEP 1 COLOR r+/n BIG ; Display in BIG character mode At (2,8) "Hello," At (12,10) @userid SLEEP 2
To correct which line was executed and what was the time of execution we have reformat the script in another way. The file c:\kixtart.log will contain this debug information. Code can be (with debug):
code:
CLS AT (1,1) " " IF RedirectOutput("c:\kixtart.log") ENDIF ?"- 1-"+@time+"- " CLS ?"- 2-"+@time+"- " IF SetConsole("MAXIMIZE") ?"- 3-"+@time+"- " ENDIF ?"- 4-"+@time+"- " COLOR r+/n ?"- 5-"+@time+"- " BIG ; Display in BIG character mode ?"- 6-"+@time+"- " At (2,8) "Hello," ?"- 7-"+@time+"- " At (12,10) @userid ?"- 8-"+@time+"- " SLEEP 2 ; Wait for 3 secs (or key) ?"- 9-"+@time+"- " ; ?"- 10-"+@time+"- " USE i: \\primarynt\public ?"- 11-"+@time+"- " USE j: \\primarynt\private ?"- 12-"+@time+"- " USE q: \\ntproxy\ltc_pharmacy ?"- 13-"+@time+"- " IF (len(@homeshr) > 0) ?"- 14-"+@time+"- " USE y: "@homeshr" ; <-- f.e. Y-drive will be used as homeshr. ?"- 15-"+@time+"- " ; <-- you can also specified @homedrive value. ?"- 16-"+@time+"- " ; <-- by specification of both the use command ?"- 17-"+@time+"- " ; <-- will be: use @homedrive "@homeshr" ?"- 18-"+@time+"- " ENDIF ?"- 19-"+@time+"- " ; ?"- 20-"+@time+"- " IF Ingroup("AWELLEDS") <> 0 ?"- 21-"+@time+"- " USE w: \\posserver\wellstore ?"- 22-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 23-"+@time+"- " ENDIF ?"- 24-"+@time+"- " ?"- 25-"+@time+"- " IF Ingroup("ARNAGRP") <> 0 ?"- 26-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 27-"+@time+"- " ENDIF ?"- 28-"+@time+"- " ?"- 29-"+@time+"- " IF Ingroup("AMASTAX") <> 0 ?"- 30-"+@time+"- " USE t: \\rnaserver\rnad ?"- 31-"+@time+"- " USE h: \\posserver\mas90 ?"- 32-"+@time+"- " ENDIF ?"- 33-"+@time+"- " ?"- 34-"+@time+"- " IF Ingroup("ARNAMASEDS") <> 0 ?"- 35-"+@time+"- " USE h: \\posserver\mas90 ?"- 36-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 37-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 38-"+@time+"- " ENDIF ?"- 39-"+@time+"- " ?"- 40-"+@time+"- " IF Ingroup("AMEDEDS") <> 0 ?"- 41-"+@time+"- " USE m: \\posserver\medicode ?"- 42-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 43-"+@time+"- " ENDIF ?"- 44-"+@time+"- " ?"- 45-"+@time+"- " IF Ingroup("ARNAEDS") <> 0 ?"- 46-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 47-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 48-"+@time+"- " ENDIF ?"- 49-"+@time+"- " ?"- 50-"+@time+"- " IF Ingroup("DOMAIN_ADMINS") <> 0 ?"- 51-"+@time+"- " USE f: \\posserver\util ?"- 52-"+@time+"- " USE g: \\posserver\cam3 ?"- 53-"+@time+"- " USE h: \\posserver\mas90 ?"- 54-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 55-"+@time+"- " USE p: \\posserver\everyone ?"- 56-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 57-"+@time+"- " USE t: \\rnaserver\rnad ?"- 58-"+@time+"- " USE w: \\posserver\wellstore ?"- 59-"+@time+"- " ENDIF ?"- 60-"+@time+"- " ; ?"- 61-"+@time+"- " IF (len(@homeshr) > 0) ?"- 62-"+@time+"- " IF (len(@homedrive) > 0) ?"- 63-"+@time+"- " @homedrive ?"- 64-"+@time+"- " ELSE ?"- 65-"+@time+"- " y: ; <-- f.e. Y-drive will be used as homeshr. ?"- 66-"+@time+"- " ENDIF ?"- 67-"+@time+"- " ENDIF ?"- 68-"+@time+"- " SLEEP 1 ?"- 69-"+@time+"- " COLOR r+/n ?"- 70-"+@time+"- " BIG ; Display in BIG character mode ?"- 71-"+@time+"- " At (2,8) "Hello," ?"- 72-"+@time+"- " At (12,10) @userid ?"- 73-"+@time+"- " SLEEP 2
Please when you have still problems put the result of c:\kixtart.log on the board. Greetings.
------------------ Site map:
|
|
Top
|
|
|
|
#9154 - 2001-06-07 06:30 PM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
The script was not excecuting when I logged on so I removed Kixtart completely I have added all the needed files to my pdc and bdc but before I installed the service I wanted to ask a question. Will I install the kxrpc service From the system32\repl\IMPORT OR system32\repl\EXPORT ? Or will it be a different location on my PDC and BDC?I want to make sure I have all my ducks in a row. PDC=? BDC=? thanks
|
|
Top
|
|
|
|
#9156 - 2001-06-07 07:28 PM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
Heres what the script gave me. It would not run upon login so I ran it manually. This is getting so flustrating, Sometimes it works sometimes it doesnt. CLS AT (1,1) " " IF RedirectOutput("c:\kixtart.log") ENDIF ?"- 1-"+@time+"- " CLS ?"- 2-"+@time+"- " IF SetConsole("MAXIMIZE") ?"- 3-"+@time+"- " ENDIF ?"- 4-"+@time+"- " COLOR r+/n ?"- 5-"+@time+"- " BIG ; Display in BIG character mode ?"- 6-"+@time+"- " At (2,8) "Hello," ?"- 7-"+@time+"- " At (12,10) @userid ?"- 8-"+@time+"- " SLEEP 2 ; Wait for 3 secs (or key) ?"- 9-"+@time+"- " ; ?"- 10-"+@time+"- " USE i: \\primarynt\public ?"- 11-"+@time+"- " USE j: \\primarynt\private ?"- 12-"+@time+"- " USE q: \\ntproxy\ltc_pharmacy ?"- 13-"+@time+"- " IF (len(@homeshr) > 0) ?"- 14-"+@time+"- " USE y: "@homeshr" ; <-- f.e. Y-drive will be used as homeshr. ?"- 15-"+@time+"- " ; <-- you can also specified @homedrive value. ?"- 16-"+@time+"- " ; <-- by specification of both the use command ?"- 17-"+@time+"- " ; <-- will be: use @homedrive "@homeshr" ?"- 18-"+@time+"- " ENDIF ?"- 19-"+@time+"- " ; ?"- 20-"+@time+"- " IF Ingroup("AWELLEDS") <> 0 ?"- 21-"+@time+"- " USE w: \\posserver\wellstore ?"- 22-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 23-"+@time+"- " ENDIF ?"- 24-"+@time+"- " ?"- 25-"+@time+"- " IF Ingroup("ARNAGRP") <> 0 ?"- 26-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 27-"+@time+"- " ENDIF ?"- 28-"+@time+"- " ?"- 29-"+@time+"- " IF Ingroup("AMASTAX") <> 0 ?"- 30-"+@time+"- " USE t: \\rnaserver\rnad ?"- 31-"+@time+"- " USE h: \\posserver\mas90 ?"- 32-"+@time+"- " ENDIF ?"- 33-"+@time+"- " ?"- 34-"+@time+"- " IF Ingroup("ARNAMASEDS") <> 0 ?"- 35-"+@time+"- " USE h: \\posserver\mas90 ?"- 36-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 37-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 38-"+@time+"- " ENDIF ?"- 39-"+@time+"- " ?"- 40-"+@time+"- " IF Ingroup("AMEDEDS") <> 0 ?"- 41-"+@time+"- " USE m: \\posserver\medicode ?"- 42-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 43-"+@time+"- " ENDIF ?"- 44-"+@time+"- " ?"- 45-"+@time+"- " IF Ingroup("ARNAEDS") <> 0 ?"- 46-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 47-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 48-"+@time+"- " ENDIF ?"- 49-"+@time+"- " ?"- 50-"+@time+"- " IF Ingroup("DOMAIN_ADMINS") <> 0 ?"- 51-"+@time+"- " USE f: \\posserver\util ?"- 52-"+@time+"- " USE g: \\posserver\cam3 ?"- 53-"+@time+"- " USE h: \\posserver\mas90 ?"- 54-"+@time+"- " USE n: \\rnaserver\rnapgm ?"- 55-"+@time+"- " USE p: \\posserver\everyone ?"- 56-"+@time+"- " USE s: \\primarynt\inpes32 ?"- 57-"+@time+"- " USE t: \\rnaserver\rnad ?"- 58-"+@time+"- " USE w: \\posserver\wellstore ?"- 59-"+@time+"- " ENDIF ?"- 60-"+@time+"- " ; ?"- 61-"+@time+"- " IF (len(@homeshr) > 0) ?"- 62-"+@time+"- " IF (len(@homedrive) > 0) ?"- 63-"+@time+"- " @homedrive ?"- 64-"+@time+"- " ELSE ?"- 65-"+@time+"- " y: ; <-- f.e. Y-drive will be used as homeshr. ?"- 66-"+@time+"- " ENDIF ?"- 67-"+@time+"- " ENDIF ?"- 68-"+@time+"- " SLEEP 1 ?"- 69-"+@time+"- " COLOR r+/n ?"- 70-"+@time+"- " BIG ; Display in BIG character mode ?"- 71-"+@time+"- " At (2,8) "Hello," ?"- 72-"+@time+"- " At (12,10) @userid ?"- 73-"+@time+"- " SLEEP 2
|
|
Top
|
|
|
|
#9157 - 2001-06-07 08:16 PM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
Got tired of my script not working so I made this bat file that I use now and it works. But If anyone knows the proper syntax for if exist I would greatly apprieciate the proper changes to see if c:\kix folder exist before copying the script. net use /delete * /y net time \\POSSERVER /SET /Y sleep 1 cd\ c: md kix copy \\primarynt\netlogon c:\kix sleep 3 :run copy \\primarynt\netlogon c:\kix sleep 3 cd\ cd kix kix32.exe log.kixHere what i got back after the script executes. - 1-12:12:12- - 2-12:12:12- - 4-12:12:12- - 5-12:12:12- - 6-12:12:12- Hello, - 7-12:12:12- jon - 8-12:12:12- - 9-12:12:14- - 10-12:12:14- - 11-12:12:14- - 12-12:12:14- - 13-12:12:15- - 19-12:12:15- - 20-12:12:15- - 24-12:12:15- - 25-12:12:15- - 28-12:12:15- - 29-12:12:15- - 30-12:12:15- - 31-12:12:15- - 32-12:12:15- - 33-12:12:15- - 34-12:12:15- - 39-12:12:15- - 40-12:12:15- - 44-12:12:15- - 45-12:12:15- - 49-12:12:15- - 50-12:12:15- - 60-12:12:15- - 61-12:12:15- - 68-12:12:15- - 69-12:12:16- - 70-12:12:16- - 71-12:12:16- Hello, - 72-12:12:16- jon - 73-12:12:16- Thanks again
|
|
Top
|
|
|
|
#9158 - 2001-06-07 09:10 PM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
There are 2 Domain Admins at grandview, me and My boss. He has just informed me its meant to run from the netlogon, not the users c: drive so I have to have it running from the NETLOGON. So please ignore my previously published batch script. thanks
|
|
Top
|
|
|
|
#9159 - 2001-06-07 09:51 PM
Re: SCRIPT ERROR FROM WINNT TO 2X
|
Anonymous
Anonymous
Unregistered
|
My script is finally working here is a copy for anyone who want. Thanks kix crew i could not have done it without you.CLS USE i: \\primarynt\public USE j: \\primarynt\private USE q: \\ntproxy\ltc_pharmacy IF (len(@homeshr) > 0) USE z: "@homeshr" ; <-- f.e. z-drive will be used as homeshr. ENDIF IF Ingroup("AWELLEDS") <> 0 USE w: \\posserver\wellstore USE s: \\primarynt\inpes32 ENDIF IF Ingroup("ARNAGRP") <> 0 USE n: \\rnaserver\rnapgm ENDIF IF Ingroup("AMASTAX") <> 0 USE t: \\rnaserver\rnad USE h: \\posserver\mas90 ENDIF IF Ingroup("ARNAMASEDS") <> 0 USE h: \\posserver\mas90 USE n: \\rnaserver\rnapgm USE s: \\primarynt\inpes32 ENDIF IF Ingroup("AMEDEDS") <> 0 USE m: \\posserver\medicode USE s: \\primarynt\inpes32 ENDIF IF Ingroup("ARNAEDS") <> 0 USE n: \\rnaserver\rnapgm USE s: \\primarynt\inpes32 ENDIF IF Ingroup("DOMAIN_ADMINS") <> 0 USE f: \\posserver\util USE g: \\posserver\cam3 USE h: \\posserver\mas90 USE n: \\rnaserver\rnapgm USE p: \\posserver\everyone USE s: \\primarynt\inpes32 USE t: \\rnaserver\rnad USE w: \\posserver\wellstore ENDIF IF SetConsole("MAXIMIZE") ENDIF COLOR r+/n BIG ; Display in BIG character mode At (2,8) "welcome back," At (12,10) @userid SLEEP 1 exit batch file net use /delete * /y net time \\POSSERVER /SET /Y sleep 1 \\primarynt\netlogon\kix32.exe \\primarynt\netlogon\log.kix
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 484 anonymous users online.
|
|
|