@echo off
if not exist \\mrcdb2\e$\activedb.flg goto notactive

net use
net use i: /delete /y
net use i: \\mrcdb2\databasebackup$ /persistent:yes /y
cls
echo.
net use | find "I:"
echo.
echo IMPORTANT: Confirm that the I:\ drive is mapped to \\mrcdb2\databasebackup$
echo.
echo.
pause
goto end

:end
exit


:notactive
cls
echo MRCDB2 is NOT set as the active database server...process is being cancelled
echo.
echo Check with David Cooper or David Guyan if you have been told to switch
echo to the backup database
echo.
echo.
sleep 10
exit