Pascal,

Look at the comments below..
Code:

$SHRServer1="Server1"
; -- IS IT NOT Server2?
$SHRServer2="Server2"

; -- NEED TO COMMENT OUT THE NEXT LINE
;********** Connect Common and Private shared
:SHARED

;Disconnect Previous Connections
; -- MAY NEED TO ADD A /PERSISTENT to remove Persistent connections
USE N: /DELETE
USE M: /DELETE

;Connect Common Drive
; -- QUOTING IS WRONG
USE N: "\\"+$SHRServer1+"\common"
;Connect personnal Drive
; -- QUOTING IS WRONG
; -- Is it not @USERID ?
; -- UNCOMMENT OUT THE NEXT LINE, IF YOU WANT
; USE M: "\\"+$SHRServer2+"\"+@USERID+"$$"
; - REMOVE THE NEXT LINE IF THE PREVIOUS LINE IS WHAT YOU WANT
USE M: "\\"+$SHRServer2+"\"+$UserID+"$$"



HTH,

Kent


Edited by kdyer (2004-05-12 06:26 PM)
_________________________
Utilize these resources:
UDFs (Full List)
KiXtart FAQ & How to's