Improved script, there were syntax errors (IF without ENDIF)
code:
; un-comment the next line to step through the script
; DEBUG OB
; prevent to be logged out if script fails
BREAK ON
CLS
$userid=@userid
$fullname=@fullname
$workstation=@wksta
$domain=@domain
use * /DELETE /PERSISTENT
IF INGROUP("Domain Users") = 1
USE O: "\\server1\common" /PERSISTENT
ENDIF
IF INGROUP("IT") = 1
USE q: "\\server1\it" /PERSISTENT
USE i: "\\server2\installs" /PERSISTENT
ENDIF
EXIT 0
I also removed the multiple USE /DELETE lines and compacted it a bit since the stuff is identical for both windows NT and 9x.
Also, please avoid using GOTO statements, it's a sign of inefficient programming.
'/DEL/ is incorrect, it must be '/DELETE'
Please use the KiXStrip utility for syntax checking, download here: http://home.wanadoo.nl/scripting/
[ 13. August 2002, 22:46: Message edited by: sealeopard ]
_________________________
There are two types of vessels, submarines and targets.