@echo off
echo wscript.echo dateadd("d",1,now())>a.vbs
for /f %%i in ('cscript/nologo a.vbs') do set t=%%i
echo %t%
rem 2019/9/12
set y=%t:~,4%
echo %y%
set m=%t:~5,2%
if "%t:~6,1%"=="/" set "m=0%m:~,1%"
echo %m%
set d=%t:~8,2%
echo %d%
if "%t:~6,1%"=="/" set "d=%t:~7,2%"
echo %d%
if "%d:~1,1%"=="" set "d=0%t:~7,1%"
echo %d%
set "ymd=%y%%m%%d%"
echo %ymd%
rem pause