|
Figured I would add the bat file and script syntax: ________________ 2000.bat
@ECHO OFF %0\..\Kix32.exe ________________________
kixtart.kix -
Break off Cls
;--------------->Assign variables for servers and shares
$x="$$" $u="@userid" $hs1="\\haley_serv1\" $hs2="\\haley_serv2\" $pn1="\\pns_serv1\" $pn2="\\pns_serv2\" $APR="APR" $AR4="AR4" $MMS="mms2000" $Tea="Teachers"
;---------------> Migrating Users select case $u="robbinss" $Home=$hs1+$u+$$ $mmsm=$hs1+$mms+$$ case 1
;----------------> If at Port Norris variables if instr(EnumIpInfo(0,0),"172.26.")
$Home=$pn1+$u+$$ $mmsm=$pn1+$mms+$$ $teach=$pn1+$Tea+$$
;----------------> If at Haleyville variables Else $Home=$hs1+$u+$$ $mmsm=$hs1+$mms+$$ $teach=$hs1+$Tea+$$
Endif endselect
;----------------> Map Home Drive use H: $HOME
;----------------> Common Mappings ; Use T: $teach
;----------------> Group Mappings
;--> Haley MMS2000 if ingroup("mms2000") Use m: $mmsm Endif
;--> Haley AR Reader if ingroup("AR4") Use R: $AR4 Endif
;--> PNS APR Group if ingroup("APR") Use R: $APR Endif
sleep 5 cookie1
|