标题: [求助]如何查找某天创建的文件
[打印本页]
作者: laotou
时间: 2007-9-18 09:00
标题: [求助]如何查找某天创建的文件
作者: 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:
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