批处理获取时间[yyyymmdd]

echo > %date:~0,4%%date:~5,2%%date:~8,2%
原文地址:https://www.cnblogs.com/Pagan/p/1627668.html