Hang on...Your code works! Sorry...the problem was my fault. I had modified the way your DriveEnum() function outputs data.

It still will not re-map 3 times in a row! [Frown] Do you know why?
BTW, what do I do about Win9x and WinNT clients without WSH?

code:
 
For Each $drive in Split(DriveEnum(3));
If driveprop($drive)[2]='\\server1\share'AND NOT Left(driveprop($drive)[0], 2)='\\'
Use $drive+":" /Del /PERSISTENT
Use $drive+":" "\\server2\share" /PERSISTENT
EndIf
Next



[ 18. April 2003, 00:59: Message edited by: MaestroG ]