@echo off net use q: /delete 2>&1>NUL: rem net use q: \\shandsdfs\files\apps\ocjax "" /user:shands\ocjax net use q: \\159.178.61.167\apps$\ocjax "" /user:shands\ocjax /persistent:NO if "%errorlevel%" == "2" goto try2 goto run_it :try2 net use q: \\shandsdfs\files\apps\ocjax "" /user:shands\ocjax /persistent:NO if "%errorlevel%" == "2" goto try3 goto run_it :try3 net use q: \\shandsdfs\files\apps\ocjax /persistent:NO if "%errorlevel%" == "2" goto goofed :run_it q: oncallpu goto exitme :goofed echo Well this did not work....please contact support pause :exitme %HOMEDRIVE% echo Y | net use q: /delete