Net use
From MohidWiki
Net use allows to map network drives programatically. In particular it can help to network with windows NT shares AND linux samba shares.
Quick start
Simply choose an available logical drive letter (like L:), a valid UNC path (like \\opendap.mohid.com\opendap), and a valid username on the target machine as well as on the local machine (like datamover).
> net use L: \\opendap.mohid.com\opendap password_of_datamover /user:MARETEC\datamover