Use this and let me know result and if the path is a valid path.

You need to properly set the $lserver variable in the function first. Does that work? Then comment it out of the function and define it normally.

Please post the text returned from this function.


Function ConnectHomeDrive()
;******************************
; Home DriveShares
;******************************
Dim $Drive
$Drive = "N:"

Progress( "Connecting " + $Drive)


$lserver = "Your server"

Dim $path
$path = "\\" + $lserver + "\"+ @userid + "$$"

DbgMessage("Info","home folder - " + $Drive + " = " + $path )

Use $Drive /delete /persistent
DbgMessage("Info","use "+$Drive+" /delete Error: @error @serror")

Use $Drive $path
DbgMessage("Info","is this path ("+$path+") correct? - Error: @error @serror" )

EndFunction
_________________________
Home page: http://www.kixhelp.com/hb/