<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 閱讀(5592) 評論(0)  編輯  收藏 所屬分類: windows
    主站蜘蛛池模板: 国产精品自在自线免费观看| 亚洲视频免费在线播放| a级毛片无码免费真人| 久久亚洲春色中文字幕久久久| 成人无码精品1区2区3区免费看| 亚洲av午夜精品一区二区三区| 日韩在线视精品在亚洲| 男人的天堂亚洲一区二区三区 | 亚洲综合在线成人一区| 欧洲精品99毛片免费高清观看| 亚洲男人天堂av| 日本妇人成熟免费中文字幕| 亚洲日本久久久午夜精品| 日韩免费观看一级毛片看看| 免费播放美女一级毛片| 亚洲欧洲日产国码一级毛片 | 少妇太爽了在线观看免费视频| 亚洲尹人九九大色香蕉网站 | 精品国产精品久久一区免费式| 亚洲av成人无码网站…| 亚洲人成国产精品无码| 精品一区二区三区免费| 亚洲一区在线观看视频| 在线观看国产情趣免费视频| 乱爱性全过程免费视频| 亚洲爆乳无码一区二区三区| 五月婷婷综合免费| 在线观看国产一区亚洲bd| 伊人久久大香线蕉亚洲| 久久九九兔免费精品6| 色欲色欲天天天www亚洲伊| 亚洲午夜福利717| 日本妇人成熟免费中文字幕| 特级毛片爽www免费版| 亚洲伦理一区二区| 免费无码一区二区三区蜜桃大| 成人妇女免费播放久久久| 亚洲国产成人精品电影| 亚洲AV中文无码乱人伦| 四虎免费影院ww4164h| a一级毛片免费高清在线|