Try this, I formatted the code properly. The backslashes have been put in quotes.
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

As an alternative, you might want to put your mappings configuration into a .INI file. This way you can update drive mappings without changing the script code. An example for printer mappings is provided here: http://81.17.37.55/board/ultimatebb.php?ubb=get_topic;f=1;t=004838
It would be very easy to translate it for drive mappings.
_________________________
There are two types of vessels, submarines and targets.