#119947 - 2004-05-24 06:41 PM
Re: Novell Mapping
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Your post will do exactly that, but reading into the groups and mappings I suspect that this might be closer to what you want:
; Mappings for all staff MapDrive("G:","\\Server1\Sys\"+@userid) MapDrive("N:","\\nw-data-store1\"+@userid) ;map share to Users home folder MapDrive("U:","\\Server1\Vol2") ; Mappings for specific marketing groups. If InGroup("NW_MKT_PRIVATE") MapDrive("P:","\\nw-data-store1\nw_mkt_private") EndIf If InGroup("NW_CONS_MKT_PRV") MapDrive("R:","\\nw-data-store1\nw_cons_mkt_prv") EndIf If InGroup("NW_COMM_MKT_PRV") MapDrive("S:","\\nw-data-store1\nw_comm_mkt_prv") EndIf ; Generic map drive function with error reporting. Function MapDrive($d,$p) "Mapping drive "+$d+" to "+$p+"..." Use $d /delete /persistent Use $d $p If @ERROR " ***ERROR***"+@CRLF " "+@ERROR+" / "+@SERROR+@CRLF Else " Ok."+@CRLF EndIf EndFunction
|
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 1635 anonymous users online.
|
|
|