好得很程序员自学网

<tfoot draggable='sEl'></tfoot>

winXP及win7命令行下获取时间字符串 - Windows操作系


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操作系的详细内容...

  阅读:43次