TeaSpeak-Client/installer/deploy/setup_symbol_device.bat
2019-10-26 01:51:40 +02:00

25 lines
606 B
Batchfile

@echo off
set drive=T:
net use z: /dele > nul
if %ERRORLEVEL% neq 0 (
if %ERRORLEVEL% neq 2 (
echo Failed to unmount old drive [%drive%\]: %errorlevel%.
exit /b %errorlevel%
) else (
echo Drive [%drive%\] hasn't been mapped. Mapping device!
)
) else (
echo Unmounted old device. Mapping new device!
)
rem /persistent:yes
net use z: \\deploy.teaspeak.de\symbols T4j7CTADvCMev4Kr /user:deploy.teaspeak.de\TeaSpeak-Jenkins-Client
if %errorlevel% neq 0 (
echo Failed to mount drive [%drive%\]: %errorlevel%
exit /b %errorlevel%
) else (
echo New device has been mapped successfully!
)