first of all i am new here and having a hard time finding the post link / start a new topic.

anyways, need help here with the script.

somehow the drives do not map. the only one that does is the one outside the loop.

where am i going wrong. susan_ling@yahoo.com




Dim $server1
Dim $server2
Dim $index
Dim $group
Dim $profile
Dim $location
Dim $dom

; *** assign values to the variables here ***
$server1 = "lantestsvr"
$server2 = "lantestsvr"
$dom = "lantest"

DO
$group = ENUMGROUP($index)

IF $group="Accounting" Or $group="lantest\Accounting"
USE U: "\\$server1\groups\accounting"
ENDIF

IF $group="FoodBeverage" Or $group="lantest\FoodBeverage"
USE V: "\\$server1\groups\foodbeverage"
ENDIF

IF $group="HumanResource" Or $group="lantest\HumanResource"
USE W: "\\$server1\groups\humanresource"
ENDIF

IF $group="Programs" Or $group="lantest\Programs"
USE H: "\\$server1\groups\programs"
ENDIF

UNTIL Len($group) = 0

USE Q: "\\$server1\public"

EXIT