subst T: folder
@echo off
if not exist T: goto subste_t
subst T: /d >nul 2>nul
if not %ERRORLEVEL% EQU 0 net use t: /delete
:subste_t
subst t: %1
if not exist T: goto subste_t
subst T: /d >nul 2>nul
if not %ERRORLEVEL% EQU 0 net use t: /delete
:subste_t
subst t: %1
![](http://img.zemanta.com/pixy.gif?x-id=a16a5c95-2cf0-8fde-b672-50d683289a75)