<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 閱讀(5602) 評論(0)  編輯  收藏 所屬分類: windows
    主站蜘蛛池模板: 在线看亚洲十八禁网站| 免费无码H肉动漫在线观看麻豆| 中文亚洲AV片不卡在线观看| 亚洲视频在线观看2018| 永久免费看mv网站入口| 国产免费播放一区二区| 456亚洲人成影院在线观| 久久精品免费观看国产| 国产四虎免费精品视频| 国产成人亚洲精品青草天美| 羞羞视频免费网站入口| 最新中文字幕免费视频| 搜日本一区二区三区免费高清视频 | 国产偷国产偷亚洲高清日韩 | 亚洲性无码一区二区三区 | 国产网站在线免费观看| 亚洲日韩精品无码AV海量| 我的小后妈韩剧在线看免费高清版| 四虎影院永久免费观看| 免费无码一区二区三区蜜桃大| 免费无码一区二区三区| 亚洲综合久久综合激情久久| 亚洲午夜久久久久妓女影院| 99在线免费视频| 四虎成人免费大片在线| 亚洲男人的天堂网站| 夫妻免费无码V看片| 亚洲人av高清无码| 国产免费人人看大香伊| 极品色天使在线婷婷天堂亚洲| 亚洲乱妇老熟女爽到高潮的片| 在线观看特色大片免费视频| 亚洲人成在线免费观看| 亚洲精品网站在线观看你懂的| 免费看无码自慰一区二区| 亚洲男人的天堂网站| 久久久久成人片免费观看蜜芽| 亚洲AV无码码潮喷在线观看| 婷婷亚洲综合五月天小说在线| 亚洲日本国产综合高清| 无码人妻一区二区三区免费手机|