@echo offecho Wscript.echo dateadd("d",-1,date)>vbs.vbsset day=for /f %%a in ('cscript //nologo vbs.vbs') do del vbs.vbs&&set day=%day% %%a echo %day%pause