net use X: \\komp\updat pass /user:user /persistent:yes >Nul 2<&1
del /Q /F %dir%\*.*
PING 184.108.40.206 -n 1 -w 2000 2>NUL | FIND "TTL=" >NUL
copy /Y %od%\*.* %dir%
As far as you can see, first of all we check for existence of a virtual drive with the physical letter. If this drive doesn't exist, we create it. Finally we copy some files on it.