Hi all,
I have this piece of code to map a drive to specific groups.
How can I label this mapped drive with a friendly name ? let's say the sharename..
Code:
  
DIM $strShareRoot, $IntNoUnits, $arrUnit, $arrShare, $arrDrive, $intNextDrive, $intUnit

$strShareRoot = "\\Server\"
$intNoUnits = 8
$arrUnit = "_Prod", "_HR", "_AP", "_APSecr", "_FA", "Helpdesk", "_PZ", "_Dir"
$arrShare = "Prod$", "HR$", "AP$", "AP$", "Fin$", "IT$", "PZ$", "Dir$"
$arrDrive = "U:", "V:", "W:", "X:", "Y:", "Z:"
$intNextDrive = 0

For $intUnit = 0 To $intNoUnits - 1

If InGroup($arrUnit[$intUnit])
Use $arrDrive[$intNextDrive] $strShareRoot + $arrShare[$intUnit]
$intNextDrive = $intNextDrive + 1
EndIf