标题: [求助]如何查找某天创建的文件
[打印本页]
作者: laotou
时间: 2007-9-18 09:00
标题: [求助]如何查找某天创建的文件
大家好,我想向大家请教一个问题,我想用DOS命令,查找某天创建的文件,命令该如何写呢?还请大家指点,谢谢!!!
─────────────────── 版务记录 ────────────────────
执行:lxmxn
标题:[求助]向大家请教
说明:因标题表述过于模糊,不便于论坛的搜索和管理,请在三日内修改标题,否则扣除2点积分
参考:http://www.cn-dos.net/forum/viewthread.php?tid=7326&fpage=1
http://community.csdn.net/IndexPage/SmartQuestion.aspx
─────────────────── 版务记录 ────────────────────
[
Last edited by laotou on 2007-9-19 at 12:36 AM ]
作者: scriptor
时间: 2007-9-18 11:30
dir /?
你看看,那里有很好的说明啊!
dir /od |find "2007-09-18"
注意的是 引号内的日期格式,要换成你的机器上的格式
我的是在xp cmd下测试的
不知道dos下行不?
作者: HAT
时间: 2007-9-19 04:03
an other way:
Quote: |
In addition, substitution of FOR variable references has been enhanced.
You can now use the following optional syntax:
%~I - expands %I removing any surrounding quotes (")
%~fI - expands %I to a fully qualified path name
%~dI - expands %I to a drive letter only
%~pI - expands %I to a path only
%~nI - expands %I to a file name only
%~xI - expands %I to a file extension only
%~sI - expanded path contains short names only
%~aI - expands %I to file attributes of file
%~tI - expands %I to date/time of file
%~zI - expands %I to size of file
%~$PATH:I - searches the directories listed in the PATH
environment variable and expands %I to the
fully qualified name of the first one found.
If the environment variable name is not
defined or the file is not found by the
search, then this modifier expands to the
empty string |
|