net use h: \\cs-io\homes
if exist h:nul goto afterhomes
echo The share directory (h:) could not be mounted. > c:\temp\alertmsg.txt
echo   >> c:\temp\alertmsg.txt
echo You should report this problem to the lab assistant. >> c:\temp\alertmsg.txt
echo   >> c:\temp\alertmsg.txt

:afterhomes
net use m: \\cs-io\apps-c2004
if exist m:nul goto afterapps-c2004
echo The share directory (m:) could not be mounted. > c:\temp\alertmsg.txt
echo   >> c:\temp\alertmsg.txt
echo You should report this problem to the lab assistant. >> c:\temp\alertmsg.txt
echo   >> c:\temp\alertmsg.txt

:afterapps-c2004
net use s: \\cs-io\pub
if exist s:nul goto afterpub
echo The share directory (s:) could not be mounted. > c:\temp\alertmsg.txt
echo   >> c:\temp\alertmsg.txt
echo You should report this problem to the lab assistant. >> c:\temp\alertmsg.txt
echo   >> c:\temp\alertmsg.txt

:afterpub