self-confidence,the source of all the power

导航

2012年9月27日 #

bat 截取字符

摘要: 1.例子echo %time:~0,-1% 显示时间字符,从第0个到最后一个C:\Documents and Settings>echo %time:~0,-1%19:00:22.3C:\Documents and Settings>echo %time%19:00:29.49C:\Documents and Settings>echo %date:~2,-1%12-09-27 星期C:\Documents and Settings>echo %date:~,3% //第2个参数为正则表示显示的个数,为负则表示显示字符的终点下标201C:\Documents and S 阅读全文

posted @ 2012-09-27 19:07 漩涡鸣人 阅读(408) 评论(0) 推荐(0)