In order to map a Sharepoint folder as a network drive you can use the following batch:
NET USE X: /DELETE /YES NET USE Y: /DELETE /YES NET USE T: /Delete /Yes NET USE X: "\\10.1.1.212\SharedFolder1" /persistent:yes NET USE Y: "\\10.1.1.212\SharedFolder2" /persistent:yes NET USE T: "http://sharepoint-site:7882/MyDocumentsFolder/" /persistent:yes PAUSE
I recommend saving this code in a file called
map-network-drives.bat for easier access. If you want to see VBScript version please read my post on how to map a network drive using VB script.