Dear,

At shorter way can be
Code:

IF (@userid = "Student1")
USE H: /delete /persistent
USE H: "\\dellserver\students\"+@userid
ENDIF


or when @userid is mapping the homedirectory which is always necessary
Code:

USE H: /delete /persistent
USE H: "\\dellserver\students\"+@userid


greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA