Board logo

标题: 询问 批处理 怎么获取 文件修改时间 精确到秒 [打印本页]

作者: bluesky306     时间: 2009-7-2 21:54    标题: 询问 批处理 怎么获取 文件修改时间 精确到秒

询问  批处理 怎么获取 文件修改时间 精确到秒
作者: zh159     时间: 2009-7-2 23:39
CODE:  [Copy to clipboard]
@echo off
for /f "delims=" %%i in ('dir/a-d/b') do echo %%~nxi        %%~ti
pause

作者: bluesky306     时间: 2009-7-3 09:32
精确到分了。 精确到秒 能实现吗
作者: tireless     时间: 2009-7-11 23:39
http://sourceforge.net/projects/winfulldir/
作者: HAT     时间: 2009-7-12 00:28
CODE:  [Copy to clipboard]
wmic datafile where "Name='C:\\test\\a.txt'" get LastModified /value





欢迎光临 中国DOS联盟论坛 (http://cndos.fam.cx/forum/) Powered by Discuz! 2.5