Hi Folks,
After many months of testing a login script successfully using Kixtart, I created a new login script using variables as I had been but it does not work. Using debug, it gets to the "Select" then jumps to the next command in the script. The section that is not working is (my whole reason for using kixtart):
Select
Case InGroup("POLLER_01")
$dospath="$1"
Case InGroup("POLLER_01")
$dospath="$2"
Case InGroup("POLLER_03")
$dospath="$3"
Shell 'winset.exe PRCPATH='+$dospath
EndSelect
Here is the full script servername replaced by servername - my first attempt by the way so bear with me.....
;**** Last Modified on 01/17/2003 at 2:55:00 PM by kcowens ****
;**** CREATED FOR WINDOWS 95 WORKSTATIONS ****
Break ON ;(re)set Ctrl-C/Break handling
CLS
Color r+/n
Small
? "USER INFORMATION"
?
AT (4,4)
"HI, @userid"
?
? "WHAT TIME IS IT?"
?
? @DAY", " @DATE
?
? @TIME
?
? @MONTH ", " @YEAR
?
?
Sleep 1
CLS
?
?
SetTime "\\servername"
;Use F: /DELETE
;Use F: "@HOMESHR"
;Use G: /DELETE
;Use G: \\servername\clines$
;Use H: /DELETE
;Use H: \\servername\public
Use I: /DELETE
Use I: "\\servername\data$"
Use J: /DELETE
Use J: "\\servername\insurity$"
Use W: /DELETE
Use W: "\\servername\spapps$"
Use y: /DELETE
Use y: "\\servername\HOME"
?
?
If @USERID = POLLER01
Use lpt1 /DELETE
Use lpt1 "\\servername\Solimar_PRC"
Use lpt2 /DELETE
Use lpt2 "\\servername\UW_4SI_1"
EndIf
?
?
If @USERID = POLLER03
Use lpt1 /DELETE
Use lpt1 "\\servername\isd_4si_1"
EndIf
?
?
If @USERID = POLLER04
Use lpt1 /DELETE
Use lpt1 "\\servername\Solimar_PRC"
Use lpt2 /DELETE
Use lpt2 "\\servername\UW_4SI_1"
EndIf
?
?
If InGroup("CL-UNDERWRITING")
Use K: /DELETE
Use K: "\\servername\streets8"
Use U: /DELETE
Use U: "\\servername\autofac$"
Use V: /DELETE
Use V: "\\servername\boeckh$"
EndIf
?
?
If InGroup("\\servername\CLPOLICIES")
Use H: /DELETE
Use H: "\\servername\policies$"
EndIf
?
?
If InGroup("UW_4SI_1")
Use lpt1: /DELETE
Use lpt1 "\\servername\UW_4SI_1"
EndIf
?
?
If InGroup("UW_4SI_2")
Use lpt1: /DELETE
Use lpt1 "\\servername\UW_4SI_2"
EndIf
?
?
If InGroup("UW_HP8_1")
Use lpt1: /DELETE
Use lpt1 "\\servername\UW_HP8_1"
EndIf
?
?
If InGroup("GENARATE_TEST")
Use T: /DELETE
Use T: "\\servername\p1test$"
EndIf
?
?
Select
Case InGroup("POLLER_01")
$dospath="$1"
Case InGroup("POLLER_01")
$dospath="$2"
Case InGroup("POLLER_03")
$dospath="$3"
Shell 'winset.exe PRCPATH='+$dospath
EndSelect
?
?
? "Sample Windows NT Login Script For AVUpdate"
? "Please replace in this file with the name of"
? "the NT Server designated as your update server."
?
If "%OS%" == "Windows_NT" Goto skip
If NOT "%WINBOOTDIR%" == "" Goto 95
?
? "Running AVupdate using WIN3x syntax"
Use P: "\\servername\CheyUp$"
P:\avupdate.exe
Use P: /delete
Goto skip
?
:95
? "Run AVupdate using WIN95 syntax"
? "Running using WIN95 syntax"
\\servername\CheyUp$\avupdate.exe
?
?
:skip
? "Thank you For using AV-Update"
?
?
Exit
I have been through 'Known Problems of Kixtart on Windows 95' and 'fixed' those that apply and still the "PRCPATH" does not get set. All other InGroup statements work fine. We (unfortunately) use the Microsoft Client for Netware and the Microsoft Client for Windows.
Any and all help, suggestions will be appreciated! Will happily provide more information on request. Thanks!
_________________________
The worst dilemmas are often the best opportunities in disguise.
'Carpe Diem'