找回密码
 注册
搜索
[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
查看: 25894|回复: 5

[文件操作] DIR强化命令:FI.exe

[复制链接]
发表于 2008-11-10 17:35:37 | 显示全部楼层 |阅读模式
FI.EXE

Version 0.13, Copyright (C)2002, Frank P. Westlake.
Prints a list of files.

FI [options] file   [[options]  file [. . .]]

file  May include wild cards. Use the current directory indicator (.) to
          refer to a directory, ex: FI C:\temp\.

Options, must precede 'file':
/A         Attribute filter, Prints only the files with specified attributes.
              Ex: /A+SH-R  (prints only the files with S and H but without R)
/B         Prints only the file name.
/C         Format numbers with a separator (default). Use /-C to disable.
/D         Print information on the device, for example: /D C: or \\.\
/G[A|C|W]"<"|"="|">"value[/divisor]
            Filters files by age in days. If '/divisor' is given, the day value
            is divided by that value (i.e. /24 for hours, /1440 for minutes).
              A=last access, C=creation, W=last write. Default is W.
/H         Include alternate data stream names. Printed as 'file:stream'.
/L         Include link index and the number of links as first two columns.
/Q         Include owner in brief listing or SIDs in verbose listing.
/S         Displays files in specified directory and all subdirectories.
/T[A|C|W][G]
            Print the time stamp of the file (default). Use /-T to disable. If
            'G' is included print age instead of time.
              A=last access, C=creation, W=last write. Default is W.
              Examples: /TC  /TCG  /-T
/V         Print detailed information for each file.
/X         Use short file names.
/Z["<"|"="|">"value]
            Filters files by size (default). Use /-Z to disable printing of
            file size.

The hyphen may be used to reverse the effect of an option.

Comparison operators must be quoted somehow: /z"="0 "/z=0" /"z=0"

Swirches may be predefined in an environment variable with the name of this
program, for example 'SET FI.EXE=/LHQ-C'. The program name may vary.

Codes displayed with trustee rights [T:RWXDPODF+]:
T=Either "Allows" or "Denies" the displayed permissions.
R=Read, W=Write, X=Execute, D=Delete, P=Permissions write, O=Owner write.
P=Primary object, D=Directories inherit, F=Files inherit, +=Propagated

Examples:

  FI C:\WINNT\.
  FI "/g>7" /ash-r C:\WINNT\*.exe
  FI "/z=0" C:\WINNT\*.exe

可以直接寻找从当日开始多少日之内产生或修改的文件
用法和DIR差不多

EX:
  1. C:\1>FI /TC /AD %SYSTEMDRIVE%
  2. Listing of 046C-52E5  C:\1\*
  3. 2008-10-31 11:35:14 --D-----             - dat
  4. 2008-10-20 13:13:12 --D-----             - debug
  5. 2008-09-26 09:53:54 --D-----             - klif
  6. 2008-10-09 09:47:18 --D-----             - program
  7. 2008-11-10 17:28:55 --D-----             - Temp
复制代码

  1. C:\1>FI /TC /AD "/G<30" %SYSTEMDRIVE%
  2. Listing of 046C-52E5  C:\1\*
  3. 2008-10-31 11:35:14 --D-----             - dat
  4. 2008-10-20 13:13:12 --D-----             - debug
  5. 2008-11-10 17:28:55 --D-----             - Temp
复制代码





在这有得到东西也要有东西回馈


没空间就放免费的了

http://kotuha.com/file/ELvFp-fi.html

[ 本帖最后由 sylovanas 于 2008-11-10 17:37 编辑 ]

评分

参与人数 1PB +5 收起 理由
Batcher + 5 感谢分享

查看全部评分

发表于 2008-11-10 17:49:17 | 显示全部楼层
感觉和 GNU for Win32 的 find.exe 有类似之处
发表于 2008-11-10 19:06:09 | 显示全部楼层

多谢楼主分享。

E 文不是很好,看着点点吃力。
我用这个 fi/b/x。
发表于 2008-11-28 13:40:52 | 显示全部楼层
不会英文,吃力的看着说明
发表于 2008-12-2 08:20:20 | 显示全部楼层
的确不会英文啊,谢谢
发表于 2009-4-24 17:20:32 | 显示全部楼层
下载来用用,慢慢学好了。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|批处理之家 ( 渝ICP备10000708号 )

GMT+8, 2026-3-17 06:25 , Processed in 0.021307 second(s), 9 queries , File On.

Powered by Discuz! X3.5

© 2001-2026 Discuz! Team.

快速回复 返回顶部 返回列表