<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://m.tkk7.com/zhyiwww   
    |----------------------------------------------------------------------------------------|
    posted on 2007-08-23 18:13 zhyiwww 閱讀(5595) 評論(0)  編輯  收藏 所屬分類: windows
    主站蜘蛛池模板: 亚洲三级视频在线| 亚洲AV成人片色在线观看| 亚洲乱码在线观看| 欧美在线看片A免费观看| 亚洲fuli在线观看| 毛色毛片免费观看| 亚洲乱码av中文一区二区| 卡一卡二卡三在线入口免费| 亚洲国产精品成人午夜在线观看 | a级毛片无码免费真人久久 | 精品亚洲aⅴ在线观看| 亚洲视频免费在线播放| 中文文字幕文字幕亚洲色| 成人人观看的免费毛片| 亚洲AV无码专区在线厂| 亚洲视频在线一区二区| 美女视频黄a视频全免费网站色窝| 久久久久久久综合日本亚洲| 99久久精品免费精品国产| 亚洲免费人成视频观看| 麻豆国产入口在线观看免费| 人碰人碰人成人免费视频| 人人狠狠综合久久亚洲88| 精品国产无限资源免费观看| 亚洲欧洲无卡二区视頻| 国产91精品一区二区麻豆亚洲| 久草免费福利视频| 亚洲熟女www一区二区三区| 亚洲av日韩av欧v在线天堂| 国产一区二区免费| 亚洲综合激情五月色一区| 亚洲乱码中文字幕综合234| 十九岁在线观看免费完整版电影| 亚洲资源最新版在线观看| 亚洲欧洲自拍拍偷精品 美利坚| 免费精品无码AV片在线观看| 色天使色婷婷在线影院亚洲| 图图资源网亚洲综合网站| 成熟女人牲交片免费观看视频| 亚洲高清免费视频| 亚洲性色成人av天堂|