in reply to Assign IP address to some drive

Some variation on subst u: \\12.13.12.345\c$ should do the trick.

And an unadorned subst will show you which substitutions are currently in force.

From Perl, just use the above with system or a piped open.


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
RIP PCW