Hi,

I think your values should be in speech marks. EG:

code:
  
$server = "server"
$shares = "Mark","www","hdd","Public"
$drives = "e:","f:","g:","h:"
$I = 0
FOR EACH $mapping IN $shares
use $drives[$I] \\$server\$mapping
$I = $I + 1
NEXT

Darren
_________________________
I want to share something with you - the three sentences that will get you through life.
Number 1, 'cover for me.'
Number 2, 'oh, good idea, boss.'
Number 3, 'it was like that when I got here'.