artimys
4/14/2017 - 2:31 PM

Batch: Mapped Drives

Windows batch files

Windows 7: drop file at: C:\User\ACCOUNT\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

# Startup file directory: C:\Users\Lisa\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup

@echo off


# Map Lisa folder with username/pass
net use l: \\Coligni\Lisa
# /user:lisa lisa /persistent:yes

# Map Shared Music folder
# Note: This works with double quotes but not with args
net use m: "\\Coligni\LisaMusic"


# /persistent:yes
# Map 2 drivers at login
# -------------------------------------------
@echo off

net use b: "\\Bronx\Lisa"
net use m: "\\Bronx\Public\Shared Music"
# --------------------------------------------