Dear,We have add some debug code to your script, which will show
- which lines were executed
- what was the time of execution
- what was the error status
Also we had made some changes. A short list of it:
- we replace line.12 by line.9 - line.11.
we remove the drive mapping N:, O: and P: by name.
possible you have a problem with the use * /delete call by
persistent mappings.
- we remove the goto finish statement in your SELECT/CASE/ENDSELECT
structure. After the ENDSELECT we add this GOTO statement again (line.43)
it is only a cosmetic change.
Please this code and the file c:\kix-info.log will contain above
information.
Please put the result of this c:\kix-info.log file on the board, when
you have still a problem.
code:
CLS
COLOR C+/N
AT (1,1) " "
IF RedirectOutput("")
ENDIF
? "-"+@date+" "+@time+"- Script "+@kix+" starting."
?"- 1-"+@time+"- @error @serror "?
?"- 2-"+@time+"- @error @serror "? ;*********************** Initialization ***********************
?"- 3-"+@time+"- @error @serror "? ? "Processing Logon Script for @USERID..."
?"- 4-"+@time+"- @error @serror "? IF (SETCONSOLE ("HIDE") <> 0)
?"- 5-"+@time+"- @error @serror "? ENDIF
?"- 6-"+@time+"- @error @serror "?
?"- 7-"+@time+"- @error @serror "? $servername = "\\MDCH-DS1"
?"- 8-"+@time+"- @error @serror "? ;******************* delete persistent drive ******************
?"- 9-"+@time+"- @error @serror "? USE N: /delete
?"- 10-"+@time+"- @error @serror "? USE O: /delete
?"- 11-"+@time+"- @error @serror "? USE P: /delete
?"- 12-"+@time+"- @error @serror "? ; USE * /delete
?"- 13-"+@time+"- @error @serror "? ;****************** Map Network Directories *******************
?"- 14-"+@time+"- @error @serror "? ?
?"- 15-"+@time+"- @error @serror "? ? "Mapping Department Directory to N:\..."
?"- 16-"+@time+"- @error @serror "? ? "Mapping Personal Directory to O:\..."
?"- 17-"+@time+"- @error @serror "? SELECT
?"- 18-"+@time+"- @error @serror "? CASE
INGROUP ("Financial")
?"- 19-"+@time+"- @error @serror "? USE N: "$ServerName\Financial"
?"- 20-"+@time+"- @error @serror "? USE O: "$ServerName\Financial\@USERID"
?"- 21-"+@time+"- @error @serror "? USE P: "$ServerName\Financial\" + @userid
?"- 22-"+@time+"- @error @serror "? ? " Connected to FINANCIAL!"
?"- 23-"+@time+"- @error @serror "? CASE
INGROUP ("Human Resources")
?"- 24-"+@time+"- @error @serror "? USE N: "$ServerName\Human Resources"
?"- 25-"+@time+"- @error @serror "? USE O: "$ServerName\Human Resources\@USERID"
?"- 26-"+@time+"- @error @serror "? ? " Connected to FINANCIAL!"
?"- 27-"+@time+"- @error @serror "? CASE
INGROUP ("Information Systems")
?"- 28-"+@time+"- @error @serror "? USE N: "$ServerName\Information Systems"
?"- 29-"+@time+"- @error @serror "? USE O: "$ServerName\Information Systems\@USERID"
?"- 30-"+@time+"- @error @serror "? ? " Connected to INFORMATION SYSTEMS!"
?"- 31-"+@time+"- @error @serror "? CASE
INGROUP ("Secretaries & Assistants")
?"- 32-"+@time+"- @error @serror "? USE N: "$ServerName\Secretaries & Assistants"
?"- 33-"+@time+"- @error @serror "? USE O: "$ServerName\Secretaries & Assistants\" + @userid
?"- 34-"+@time+"- @error @serror "? ? " Connected to SECRETARIES & ASSISTANTS!"
?"- 35-"+@time+"- @error @serror "? CASE
1
?"- 36-"+@time+"- @error @serror "? BEEP
?"- 37-"+@time+"- @error @serror "? SETCONSOLE ("MAXIMIZE") = 0
?"- 38-"+@time+"- @error @serror "? ? " Unrecognized Group, NO DRIVES MAPPED!"
?"- 39-"+@time+"- @error @serror "? ?
?"- 40-"+@time+"- @error @serror "? ? "Please Contact Thomas Michaels At x5010 For Help!"
?"- 41-"+@time+"- @error @serror "? SLEEP 5
?"- 42-"+@time+"- @error @serror "? ENDSELECT
?"- 43-"+@time+"- @error @serror "? GOTO finish
Greetings.