标题: 以系统日期建立文件名或文件夹的个人新解
[打印本页]
作者: waha1she
时间: 2008-12-11 10:49
标题: 以系统日期建立文件名或文件夹的个人新解
@echo off
for /f "tokens=1-3 delims=- " %%i in ('@echo %date:~0,10%') do set dat=%%i%%j%%k
echo %dat%
pause >nul 2>nul
作者: HAT
时间: 2008-12-11 11:15
批处理标准化获取当前系统日期
http://www.cn-dos.net/forum/viewthread.php?tid=41857
作者: wangff
时间: 2008-12-11 11:29
set dat=%date:* =%
set dat=%dat:-=%
[
Last edited by wangff on 2008-12-11 at 11:33 ]
作者: wangff
时间: 2008-12-11 11:42
中英文下格式下同,上-帖是芙文下.
作者: exzzz
时间: 2008-12-11 16:57
Quote: |
Originally posted by wangff at 2008-12-11 11:29 AM:
set dat=%date:* =%
set dat=%dat:-=% [ Last edited by wangff on 2008-12-11 at 11:33 ] |
|
set命令用的很好!~