for /f "usebackq tokens=*" %%i IN (`call cscript //nologo 前日取得.vbs`) DO @set CheckDate1=%%i
set CheckDate1=%CheckDate1:~0,4%%CheckDate1:~5,2%%CheckDate1:~8,2%
echo %CheckDate1%
pause
CheckDate = Now()
WScript.Echo DateAdd("d",-1,CheckDate)
{{tag>Windows bat vbs 小技}}