winXP及win7命令行下获取时间字符串
winxp: www.2cto.com
for /F "tokens=1,2,3 delims=- " %a in ('date /t') do set d1=%a%b%c
win7: www.2cto.com
for /F "tokens=1,2,3 delims=/ " %a in ('date /t') do set d1=%a%b%c
输出:set d1=20121112
查看更多关于winXP及win7命令行下获取时间字符串 - Windows操作系的详细内容...
声明:本文来自网络,不代表【好得很程序员自学网】立场,转载请注明出处:http://haodehen.cn/did23931