in reply to Map Local Drive Win32

You might be able to achieve this by altering the registry instead, see Wikipedia for some hints. Win32::TieRegistry is an easy way to interface the registry.
Watch out for peristence (or not) across reboots.