<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无码无线在线观看| 亚洲成a人片77777群色| 91亚洲一区二区在线观看不卡| 亚洲精品成人片在线播放| 国产亚洲精久久久久久无码| 国产AV无码专区亚洲AV漫画 | 欧洲 亚洲 国产图片综合| 91亚洲自偷手机在线观看| 久久亚洲sm情趣捆绑调教| 亚洲综合激情六月婷婷在线观看| 亚洲一区二区影院| 亚洲码在线中文在线观看| 亚洲国产成人久久99精品| 亚洲精品中文字幕无乱码麻豆| 亚洲a∨无码男人的天堂| 亚洲天堂男人影院| 亚洲aⅴ无码专区在线观看| 黑人粗长大战亚洲女2021国产精品成人免费视频 | 日韩电影免费在线| 国产免费怕怕免费视频观看| 亚洲?V乱码久久精品蜜桃| 亚洲无码日韩精品第一页| 亚洲一区二区三区在线观看精品中文| 国产成人麻豆亚洲综合无码精品 | 一本无码人妻在中文字幕免费| 最近中文字幕mv手机免费高清| 国内自产拍自a免费毛片| 免费一级毛片一级毛片aa| JLZZJLZZ亚洲乱熟无码| 久久精品国产精品亚洲色婷婷| 亚洲精品无码久久久久久久| 中文字幕亚洲码在线| 免费精品视频在线| 久久精品无码精品免费专区| 无码区日韩特区永久免费系列| 日本视频免费在线| 久久精品国产精品亚洲精品| 亚洲国产精品日韩在线| 美女裸体无遮挡免费视频网站|