Please read the KiXtart Manual and the FAQ Forum, especially Kixtart Starter's Guide and KXRPC - Everything you wanted to know about KXRPC

then start with a simle script with just one mapping and some error checking before going towards more complicated scripts.
code:
$drive='g:'
$unc='\\server\share'
use $drive /delete /persistent
use $drive $unc
? 'Error '+@ERROR+' - '+@SERROR

and read up on DEBUG ON.
_________________________
There are two types of vessels, submarines and targets.