加载中…
个人资料
  • 博客等级:
  • 博客积分:
  • 博客访问:
  • 关注人气:
  • 获赠金笔:0支
  • 赠出金笔:0支
  • 荣誉徽章:
正文 字体大小:

DOS命令大全:Find命令详解

(2011-06-30 19:01:08)
标签:

杂谈

分类: 平台UNIX/MSdos/Andriod

C:\>dir /s *notepad*.exe
 Volume in drive C has no label.
 Volume Serial Number is 0008-D7BF

 Directory of C:\Windows

07/14/2009  09:14 AM           179,712 notepad.exe
               1 File(s)        179,712 bytes

 Directory of C:\Windows\System32

07/14/2009  09:14 AM           179,712 notepad.exe
               1 File(s)        179,712 bytes

 Directory of C:\Windows\winsxs\x86_microsoft-windows-notepadwin_31bf3856ad364e3
5_6.1.7600.16385_none_42a023025c60a33a

07/14/2009  09:14 AM           179,712 notepad.exe
               1 File(s)        179,712 bytes

 Directory of C:\Windows\winsxs\x86_microsoft-windows-notepad_31bf3856ad364e35_6
.1.7600.16385_none_6ef0e39ed15350e4

07/14/2009  09:14 AM           179,712 notepad.exe
               1 File(s)        179,712 bytes

     Total Files Listed:
               4 File(s)        718,848 bytes
               0 Dir(s)  37,401,214,976 bytes free

C:\>

DOS命令大全:Find命令详解

MS-DOS命令范例

要从Pencil.ad 显示包含字符串“Pencil Sharpener”的所有行,请键入:

find "Pencil Sharpener" pencil.ad

要查找将文字包含在引号之内的字符串,必须首先将整个字符串用引号围绕起来。其次,每个包含在字符串内的引号必须使用双引号。要在 Report.doc中查找“The scientists labeled their paper ‘for discussion only.’It is not a final report.”,请键入:

find "The scientists labeled their paper ""for discussion only."" It is not a final report." report.doc

如果要搜索一组文件,可以使用带有 for 命令的 find 命令。要在当前目录中搜索包含 .bat 扩展名以及包含“PROMPT”字符串的文件,请键入:

for %f in (*.bat) do find "PROMPT" %f

要搜索硬盘以便在 C 驱动器上查找和显示包含字符串“CPU”的文件名,请使用管道号 (|) 将 dir 命令的结果重新定向到如下所示的 find中:

dir c:\ /s /b | find "CPU"

因为 find 搜索区分大小写并且 dir 产生的输出是大写的,所以必须用大写字母键入字符串“CPU”或者将 /i 命令行选项与 find 一起使用


DOS命令大全

Append Arp Assoc At
Atmadm Attrib 批处理文件 Bootcfg
Break Buffers Cacls Call
Chcp Chdir Chkdsk Chkntfs
Cipher Cls Cmd DOS命令大全,详解
Cmstp 颜色 配置命令提示符 Comp
Compact 概念 Convert 复制
Country CScript.exe Date Debug
Debug:a (assemble) Debug:c (compare) Debug:d (dump) Debug:e (enter)
Debug:f (fill) Debug:g (go) Debug:h (hexadecimal) Debug:i (input)
Debug:l (load) Debug:m (move) Debug: n (name) Debug:o (output)
Debug:p (proceed) Debug:q (quit) Debug:r (register) Debug:s (search)
Debug 子 Debug:t(追踪) Debug:u (unassemble) Debug:W (write)
Debug:xa (allocate expanded memory) Debug:xd (deallocate expanded memory) Debug:xm (map expanded memory pages) Debug:xs (display expanded memory status)
Defrag Del (erase) Device Devicehigh
Dir Diskcomp Diskcopy DiskPart
Dos MS-DOS 子系统 执行熟悉任务的新方法 Doskey
Dosonly Driveparm Driverquery 回显
Echoconfig Edit Edlin Edlin:a (append)
Edlin:c (copy) Edlin:D (Delete) Edlin:e (end) Edlin:i (insert)
Edlin:l (list) Edlin:[line] Edlin:m (move) Edlin:p (page)
Edlin:q (quit) Edlin:r (replace) Edlin:s (search) Edlin 子
Edlin:t (transfer) Edlin:W (写入) Endlocal Eventcreate
Eventquery.vbs Eventtriggers Evntcmd Exe2bin
Exit Expand Fastopen Fc
Fcbs Files 使用筛选器 Find
Findstr Finger For Forcedos
格式化 Fsutil Fsutil:behavior Fsutil:dirty
Fsutil:文件 Fsutil:fsinfo Fsutil:hardlink Fsutil:objectid
Fsutil:quota Fsutil:reparsepoint Fsutil:sparse Fsutil:usn
Fsutil:volume Ftp FTP:append FTP:ascii
FTP: ! FTP:bell FTP:binary FTP:bye
FTP:cd\ FTP:close FTP:debug FTP:delete
FTP:dir FTP:disconnect FTP:get FTP:glob
FTP:hash FTP:help FTP:/lcd FTP:literal
FTP:ls FTP:mdelete FTP:mdir FTP:mget
FTP:mkdir FTP:mls FTP:mput FTP:open
FTP:prompt FTP:put FTP:pwd FTP:quit
FTP:quote FTP:recv FTP:remotehelp FTP:rename
FTP:rmdir FTP:send FTP:status Ftp 子
FTP:trace FTP:type FTP:user FTP:verbose
Ftype Getmac Goto Gpresult
Graftabl Graphics Help Helpctr
Hostname 如何 If MS-DOS命令详解·目录1
Install Ipconfig Ipseccmd Ipxroute
Irftp Label Lastdrive loadfix
Loadhigh Lodctr Lpq Lpr
Macfile Mem Mkdir MS-DOS命令详解·目录2
MS-DOS命令详解·目录3 MS-DOS命令详解·目录4 MS-DOS命令详解·目录5 MS-DOS命令详解·目录6
MS-DOS命令详解·目录7 Mmc 模式 More
Mountvol Move Msiexec Msinfo32
Nbtstat Net accounts Net Services概述 Net computer
Net config Net continue Net file Net group
Net help Net helpmsg 网络本地组 Net name
Net pause Net print Net send Net session
Net share Net start Net statistics Net stop
Net Service Commands net time Net use Net user
Net view 使用 Netsh Netsh commands for AAAA Netsh commands for DHCP
Netsh DHCP 范例 Netsh diagnostic Netsh commands for Interface IP Netsh commands for RAS
用于路由的 Netsh NetSh commands for WINS Netsh WINS 范例 Netstat
Nlsfunc Nslookup Nslookup 子 Nslookup:exit
Nslookup:finger Nslookup:help Nslookup:ls Nslookup:lserver
Nslookup:root Nslookup:server Nslookup:set Nslookup:set all
Nslookup:set class Nslookup:set d2 Nslookup:set debug Nslookup:set defname
Nslookup:set domain Nslookup:set ignore Nslookup:set port Nslookup:set querytype
Nslookup:set recurse Nslookup:set retry Nslookup:set root Nslookup:set search
Nslookup:set srchlist Nslookup:set timeout Nslookup:set type Nslookup:set vc
Nslookup:view Logman Perfmon Relog
Tracerpt Typeperf Ntbackup Ntcmdprompt
使用基于命令的脚本工具 新的命令行工具 命令行参考 命令行解释器概述
Ntsd Openfiles Pagefileconfig.vbs  
  Pause Pbadmin Pentnt
使用批处理参数 Ping Popd 打印
Prncnfg.vbs Prndrvr.vbs Prnjobs.vbs Prnmngr.vbs
Prnport.vbs Prnqctl.vbs Prompt Pushd
Rasdial Rcp Recover 命令重定向操作符
Gpupdate Reg Regsvr32 Rem
Rename (ren) Replace Rexec Rmdir (rd)
Route Rsh Rsm Runas
SC Schtasks Secedit Set
Setlocal Setver 共享 Shell
Shift Shutdown Sort Stacks
Start Subst Switches System File Checker (sfc)
Systeminfo Taskkill Tasklist Tcmsetup
TCP/IP utilities and services Telnet Tftp Time
W32tm Title Tracert Tree
终端服务更改 Change logon Change port Change user
Cprofile Flattemp 注销 Msg
Mstsc 终端服务查询 Query process Query termserver
Query session Query user Register Reset session
Shadow Tscon Tsdiscon Tskill
Tsprof Tsshutdn Terminal Services Type
Unlodctr Ver Verify Vol
Vssadmin Winnt32 Winnt WMIC
Xcopy      


0

阅读 收藏 喜欢 打印举报/Report
  

新浪BLOG意见反馈留言板 欢迎批评指正

新浪简介 | About Sina | 广告服务 | 联系我们 | 招聘信息 | 网站律师 | SINA English | 产品答疑

新浪公司 版权所有