1.输出系统时间,利用系统时间做文件名
@echo offset 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