如何在Windows Developer Preview中搜索文件 [英] How to Search for files in Windows Developer Preview

查看:101
本文介绍了如何在Windows Developer Preview中搜索文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用命令提示符或Windows资源管理器搜索位于各种文件夹中的给定大小的文件?

How can I search for files larger that a given size, located in various folders, using Command prompt or Windows explorer?

例如,我想找到所有大于320字节的文件,位于子文件夹中,位于名为"A"的文件夹下。

For example, I would like to find all the files that are larger than 320 bytes, and are located in subfolders, under a folder named "A".

推荐答案


我想找到大于320字节的所有文件,它们位于子文件夹中,位于名为"A"的文件夹下。

I would like to find all the files that are larger than 320 bytes, and are located in subfolders, under a folder named "A".



对于性能和可靠性,我希望使用PowerShell比使用WE或cmd更有希望。  不幸的是,在W8 DP中,PS ISE已经删除了帮助文件,我不知道在PS中有什么必要的语法才能实现这一点。  FWIW虽然,我设想它将是一个非常简单的"单线程" - 最多两个阶段 - GC | Where-Object  {}脚本块是您表达"大于320字节"的地方。标准。


For performance and reliability I would have more hope doing that with PowerShell than either WE or cmd.   Unfortunately, in the W8 DP the PS ISE has had its Help files removed and I don't know off the top of my head what the necessary syntax would be in PS to do this.  FWIW though, I envision it would be a really simple "one-liner"--two stages max--GC | Where-Object with the {} script block being where you would express your "larger than 320 bytes" criterion.

TTT我实际上正在考虑为ForEach-Object提供管道但是在尝试获取一个例子时发现了这个问题。 -gt&NBSP;关于&NBSP; < w>

TTT I was actually thinking of piping to ForEach-Object but found this while trying to get an example of a  -gt  relation  <w>

http:// technet.microsoft.com/en-us/library/ee177028.aspx

 

HTH

Robert Aldwinckle

---

Robert Aldwinckle
---


这篇关于如何在Windows Developer Preview中搜索文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆