@echo off>tmp.vbs echo wscript.echo dateadd("d",-1,date())for /f "tokens=1-3 delims=-/ " %%a in ('cscript //nologo tmp.vbs') do set/a y=%%a,m=100%%b,d=100%%cdel tmp.vbs&echo,%y%-%m:~-2%-%d:~-2%pause