Dear,

It is always very good to make your required settings (mostly the USE part)
bulletproof.

It is possible to using also available homedrv & homeshr values, which
values can be set by users profiles.

without settings the call can be: net use U: \\server\@userid$
code:
IF (len(@homedrv) <> 0) AND (len(@homeshr) <> 0)
USE @homedrv /delete
USE @homedrv "@homeshr"
ELSE
IF (len(@homeshr) <> 0)
USE U: /delete
USE U: "@homeshr"
ELSE
USE U: /delete
USE U: "\\server\@userid$$"
ENDIF
ENDIF

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