;standard drive mappings
Use g: "\\carefs01\team"
use m: "\\carefs01\apps"
use u: "\\carefs01\cldata";Map any BU specific drive mappings and run any application batch files.
$n = 0
do
$grp = enumgroup($n)
Select
Case instr($grp, "$CP")
use n: /delete
use n: "\\catofs03\cpdata"
use s: /delete
use s: "\\carefs01\CPDATA"
call $logonpath + "\regina\scripts\toronto.kix"
call $logonpath + "\regina\scripts\corp.kix"
exit
Case instr($grp, "$GP")
use s: /delete
use s: "\\carefs01\GPDATA"
call $logonpath + "\regina\scripts\glh.kix"
exit
Case instr($grp, "$ID")
use s: /delete
use s: "\\carefs01\IDDATA"
call $logonpath + "\regina\scripts\indiv.kix"
exit
Case instr($grp, "$IP")
use s: /delete
use s: "\\carefs01\IPDATA"
exit
Case instr($grp, "$RI")
use s: /delete
use s: "\\carefs01\RIDATA"
call $logonpath + "\regina\scripts\react.kix"
exit
endselect
$n = $n + 1
until $grp = ""
The above script is what I use to map drives (I think it is what you are after). My problem is that the command enumgroup takes about 15seconds to run. Does anyone know a way of speeding this up.
Thanks,
Trent