首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 操作系统 >

dos 展示时间

2012-09-24 
dos 显示时间@echo offsetCurDate%date:~0,10%setCurTime%time%sethh%CurTime:~0,2%if/i%hh%LSS10( set

dos 显示时间
@echo off

set   CurDate=%date:~0,10%
set   CurTime=%time%
set   hh=%CurTime:~0,2%

if   /i   %hh%   LSS   10   ( set   hh=0%CurTime:~1,1% )
set   mm=%CurTime:~3,2%
set   ss=%CurTime:~6,2%

set CurDateTime=%CurDate%_%hh%%mm%%ss%

echo Bfile=%CurDateTime%

热点排行