Strange Windows DIR command behavior

前端 未结 4 1967
长情又很酷
长情又很酷 2020-12-06 04:45

I discovered this quite by accident while looking for a file with a number in the name. When I type:

dir *number*

4条回答
  •  盖世英雄少女心
    2020-12-06 05:30

    Yep. You'll see that it also searches through short names if you try this:

    dir /x *4*
    

    (/x switch is for short names)

    for filtering file names use :

    dir /b | find "4"
    

提交回复
热议问题