Dear,

First, a welcome to the board.

Another way to do:
code:
USE X: "\\servername\share$$"
? "status X-drive: @error (@serror)"

IF (Ingroup("admin") <> 0)
USE P: "\\servername\share"
? "status P-drive: @error (@serror)"
ENDIF

When you doesn't like including all kind of additional statements please
read our FAQ-topic Debugging script without user input. also during logging on. the advanced way.
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