<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    zhyiwww
    用平實的筆,記錄編程路上的點點滴滴………
    posts - 536,comments - 394,trackbacks - 0
    想在windows下使用命令來查找文件,可以使用如下命令:where
    命令的格式如下:

    WHERE [/R dir] [/Q] [/F] [/T] pattern...

    Description:
    ??? Displays the location of files that match the search pattern.
    ??? By default, the search is done along the current directory and
    ??? in the paths specified by the PATH environment variable.

    Parameter List:
    ??? /R?????? Recursively searches and displays the files that match the
    ???????????? given pattern starting from the specified directory.

    ??? /Q?????? Returns only the exit code, without displaying the list
    ???????????? of matched files. (quite mode)

    ??? /F?????? Displays the matched filename in double quotes.

    ??? /T?????? Displays the file size, last modified date and time for all
    ???????????? matched files.

    ??? pattern? Specifies the search pattern for the files to match.
    ???????????? Wildcards * and ? can be used in the pattern. The
    ???????????? "$env:pattern" and "path:pattern" formats can also be
    ???????????? specified, where "env" is an environment variable and
    ???????????? the search is done in the specified paths of the "env"
    ???????????? environment variable. These formats should not be used
    ???????????? with /R. The search is also done by appending the
    ???????????? extensions of the PATHEXT variable to the pattern.

    ???? /?????? Displays this help message.

    ? NOTE: The tool returns an error level of 0 if the search is
    ??????? successful, of 1 if the search is unsuccessful and
    ??????? of 2 for failures or errors.

    Examples:
    ??? WHERE /?
    ??? WHERE myfilename1 myfile????.*
    ??? WHERE $windir:*.*
    ??? WHERE /R c:\windows *.exe *.dll *.bat?
    ??? WHERE /Q ??.???
    ??? WHERE "c:\windows;c:\windows\system32:*.dll"
    ??? WHERE /F /T *.dll

    我們想查找文件內容的命令是:find或者findstr
    在linux下的查找文件的命令也是 :? where
    也可以使用find -name
    查找文件的內容的話,可以使用grep ,支持正則表達式,使用起來也很方便,再加上管道,有的時候會覺得特別的方便和快捷。


    |----------------------------------------------------------------------------------------|
                               版權聲明  版權所有 @zhyiwww
                引用請注明來源 http://www.tkk7.com/zhyiwww   
    |----------------------------------------------------------------------------------------|
    posted on 2007-08-23 18:13 zhyiwww 閱讀(5602) 評論(0)  編輯  收藏 所屬分類: windows
    主站蜘蛛池模板: 亚洲第一成年网站视频| 久久精品国产亚洲av麻豆色欲| 一本色道久久综合亚洲精品蜜桃冫| 57pao一国产成视频永久免费 | 午夜a级成人免费毛片| 亚洲五月丁香综合视频| 五月婷婷综合免费| 亚洲色大成WWW亚洲女子| 在线日韩av永久免费观看| MM1313亚洲精品无码久久| 免费又黄又爽又猛的毛片| 二级毛片免费观看全程| 亚洲啪啪综合AV一区| 黄色片免费在线观看| 亚洲综合图片小说区热久久| 天天影院成人免费观看| 亚洲色偷偷综合亚洲AV伊人蜜桃 | 亚洲av无码专区亚洲av不卡| 免费国产怡红院在线观看| 免费国产黄网站在线看| 亚洲日本乱码在线观看| 国产精品免费观看调教网| 亚洲黑人嫩小videos| 卡1卡2卡3卡4卡5免费视频 | 亚洲色欲啪啪久久WWW综合网| 免费国产小视频在线观看| 国产精品黄页免费高清在线观看 | 亚洲国产精品无码久久SM| 亚洲精品视频在线观看免费| 亚洲va久久久久| 亚洲伊人成无码综合网| 最近中文字幕mv免费高清视频8| 国产亚洲精品bv在线观看| AV在线播放日韩亚洲欧| 曰批全过程免费视频播放网站 | 免费视频精品一区二区| 亚洲美女大bbbbbbbbb| 免费看又爽又黄禁片视频1000| 一级毛片免费在线观看网站| 久久久久亚洲AV无码专区首JN | 国产乱子伦精品免费视频|