将日期转换为变量的批处理脚本。
代码示例:
@echo off set YYYY=%date:~10,4% set MM=%date:~4,2% set DD=%date:~7,2% echo Year=%YYYY% echo Month=%MM% echo Day=%DD%
上一篇:batchscriptignorestheparameters?
下一篇:Batchscripttocalculateremainingdays