diff options
Diffstat (limited to '6-network.bat')
-rw-r--r-- | 6-network.bat | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/6-network.bat b/6-network.bat index 39b7f84..6992501 100644 --- a/6-network.bat +++ b/6-network.bat @@ -1,4 +1,12 @@ rem connect to network shares -net use Z: \\atlas\media /USER:%username% /PERSISTENT:YES -net use Y: \\atlas\vault /USER:%username% /PERSISTENT:YES -net use X: \\atlas\downloads /USER:%username% /PERSISTENT:YES
\ No newline at end of file +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
\ No newline at end of file |