@echo off
setlocal ENABLEEXTENSIONS
net use w: \\fileserver\program
if NOT ERRORLEVEL 0 goto NOTUPDPGM
xcopy  w:\MDL_system  c:\MDL_system  /s /e /q /i /y /d
net use /delete w: /yes
:NOTUPDPGM
cd c:\MDL_system
set dtppath="%userprofile%\Desktop"
copy MDL_system.lnk  %dtppath% /y
start MDL_system.exe
exit