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.

Disclaimer: MetinSaylan.com is a participant in the Amazon Associates Program. We earn fees by advertising and linking to Amazon.com. Read more on our privacy policy.