@echo off
for /f "tokens=*" %%i in ('cd') do set DoADP=%%i
for /f "tokens=1 delims=:" %%i in ('cd') do set DoADRIVE=%%i
for /f "tokens=2 delims=:" %%i in ('cd') do set DoAPATH=%%i
@echo on
echo %DoADP%
echo %DoADRIVE%
echo %DoAPATH%
@echo off
for /f "tokens=*" %%i in ('cd') do set DoADP=%%i
for /f "tokens=1 delims=:" %%i in ('cd') do set DoADRIVE=%%i
for /f "tokens=2 delims=:" %%i in ('cd') do set DoAPATH=%%i
@echo on
echo %DoADP%
echo %DoADRIVE%
echo %DoAPATH%