for each $drive in split(driveenum(3))
if driveprop($drive)[2]='\\server\share'
use $drive: /del /persistent
use $drive: \\newserver\newshare /persistent
next

or something like that
_________________________
How to ask questions the smart way <-----------> Before you ask