6 search windows-7 windows-search file-extension
如何搜索没有扩展名的文件?为了获得最佳效果,我只想要 <4kb,如果我可以在里面搜索文本 thewordiwant
我也有视觉工作室,但我不认为用 * 作为文件类型编写 thewordiwant 是个好主意。还 *。不只搜索没有扩展名的文件。
在命令提示符处:
目录 c:\*. /s /广告
这将*.在 C:\ 和所有子目录 ( /s)上定位没有扩展名 ( ) 的文件,并排除目录名称 ( /a-d)。
这只会根据名称定位文件。它不会满足您的其他文件大小或内容标准。
I was facing this issue today on Windows 8 and have noticed it on previously on Windows 7 as well. I finally found a way to do this right and I hope this answer helps the original posters and others who come here via google searches.
Typically for normal as well as advanced power searches I used Nirsoft SearchMyFiles and stopped using Windows Search.
But, for some reason I was having trouble getting it to find files without any extensions. I figured the same bug was there in this app as well.
但是,我错了,显然 Nir Softer 从头开始重新设计了他的通配符和正则表达式引擎;根据我在“版本历史记录”部分的页面上发现的这个小宝石:
- 2.40版本:
- SearchMyFiles 现在使用内部通配符解析器,而不是基于 Windows 通配符解析器搜索结果。此更改解决了 Windows 通配符解析器引起的一个恼人的错误:在以前的版本中,SearchMyFiles 有时会返回不正确的结果,因为 Windows 也会将通配符与短文件名(8.3 DOS 格式)进行匹配。
- 注意:新的通配符解析器可能会导致一些兼容性问题,例如:当您使用. 使用Windows解析器的通配符,它返回所有文件,包括没有扩展名的文件。使用新的 SearchMyFiles 通配符解析器,. 仅返回具有扩展名的文件。为了返回所有文件,您应该使用 * 而不是 .
- 加载旧配置文件时,SearchMyFiles 会自动将所有. 通配符为 *
- 新的通配符解析器有一些优点,例如:如果您搜索. 。。,您将获得包含 3 个点字符或更多字符的所有文件。使用以前版本的 Windows 通配符解析器,您只需获取所有文件的列表。
- 您现在可以使用通配符列表排除文件。您必须从组合框中选择此选项,因为默认选项是按扩展名排除文件。
- 您现在可以在“基本文件夹”和“排除文件夹”字段中指定环境字符串(例如: %AppData% )
因此,要查找没有扩展名的文件,请不要使用这些:
*.* or *.
Run Code Online (Sandbox Code Playgroud)
只需使用一个简单的:
*
Run Code Online (Sandbox Code Playgroud)
例如 :
Run Code Online (Sandbox Code Playgroud)Files Wildcard: * Subfolders Wildcard: * File Size: At most: 4 KB / 4096 Bytes
注意:请不要使用上面发布的“旧”屏幕截图中显示的通配符。
| 归档时间: |
|
| 查看次数: |
13025 次 |
| 最近记录: |