summaryrefslogblamecommitdiffstats
path: root/6-network.bat
blob: 699250166033c00467143135efe79bd856fb94e1 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
                             










                                                                
rem connect to network shares
set server=atlas
ping -n 1 %server% | find "TTL=" >nul 
if errorlevel 0 ( goto connect ) else ( goto no_connect )

:connect
net use Z: \\%server%\media /USER:%username% /PERSISTENT:YES
net use Y: \\%server%\vault /USER:%username% /PERSISTENT:YES
net use X: \\%server%\downloads /USER:%username% /PERSISTENT:YES

:no_connect
:eof