<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 閱讀(5595) 評論(0)  編輯  收藏 所屬分類: windows
    主站蜘蛛池模板: 亚洲免费中文字幕| 亚洲jizzjizz在线播放久| 亚洲日本一线产区和二线| 中文字幕久无码免费久久| 国产美女精品久久久久久久免费| 亚洲精品狼友在线播放| 免费看一级高潮毛片| A级毛片内射免费视频| 亚洲综合无码一区二区| 久久精品免费观看| 亚洲第一区精品观看| 亚洲精品久久无码av片俺去也| 一级特黄aaa大片免费看| 国产精品免费一级在线观看| 亚洲AV无码专区国产乱码电影 | 日韩成全视频观看免费观看高清| 亚洲美女免费视频| 日本免费高清视频| 亚洲av无码乱码国产精品fc2| jizz中国免费| 久久精品国产精品亚洲人人| 一区二区三区在线观看免费| 一本色道久久88亚洲综合| 美女免费精品高清毛片在线视| 永久在线毛片免费观看| 激情小说亚洲图片| 国产一级淫片a视频免费观看| 亚洲a∨国产av综合av下载| 啦啦啦在线免费视频| 国产精品亚洲专区无码唯爱网| 黄网址在线永久免费观看| 亚洲人成无码网站在线观看| 国产精品免费看久久久久| 国产日韩AV免费无码一区二区| 中文字幕亚洲综合精品一区| 热99re久久免费视精品频软件| 2022国内精品免费福利视频| 4444亚洲国产成人精品| 免费A级毛片无码久久版| 无码人妻丰满熟妇区免费| 在线精品自拍亚洲第一区|