文件名称:bat 批处理
文件大小:1KB
文件格式:TXT
更新时间:2016-04-17 05:44:51
bat 批处理
@echo off set year=%date:~0,4% set month=%date:~5,2% set day=%date:~8,2% set mydate=%year%%month%%day% set hhmmss=%time:~0,2%%time:~3,2%%time:~6,2% if "%hhmmss:~0,1%"==" " set hhmmss=0%time:~1,1%%time:~3,2%%time:~6,2% echo ------------------------------------------------ >> e:\x.txt echo %mydate%_%hhmmss% >> e:\x.txt echo ------------------------------------------------ >> e:\x.txt