Please read TCP/IP Primer, Part I - IP Addresses and use USE instead of SHELL 'net use'.

Finally it is recommended to set up hidden shares for user directories and not use the home directory assignments
code:
use p: '\\server\'+@USERID+'$$'

There are a couple of threads about this, please look them up with the KiXtart BBS Search.
_________________________
There are two types of vessels, submarines and targets.