bat

1.输出系统时间,利用系统时间做文件名

@echo off
set filename=%date:~0,4%%date:~5,2%%date:~8,2%%time:~0,2%%time:~3,2%%time:~6,2%
set mytime=%date:~0,15%
echo %filename%
echo %mytime%
pause

 

posted @ 2016-04-28 10:20  绿尘枫  阅读(155)  评论(0编辑  收藏  举报