From 1efc700929cef8e99ab2d54a119ad38335110085 Mon Sep 17 00:00:00 2001 From: Peter Date: Sat, 17 Nov 2018 02:57:17 +0000 Subject: Small updates --- 6-network.bat | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to '6-network.bat') 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 -- cgit v1.2.3