如何在命令提示符下仅显示具有备用数据流的文件 [英] How to display only files that have alternate data streams in Command Prompt

查看:151
本文介绍了如何在命令提示符下仅显示具有备用数据流的文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我知道要在命令提示符下显示所有文件(如果有)的备用数据流,这是命令dir /R.但是,如果我只想显示具有备用数据流的文件,该怎么办?

I know that to display alternate data streams of all the files (if any) in command prompt, this is the command dir /R. But, how do I do it if I only want to display files that have alternate data streams?

推荐答案

dir   /s /r | find ":$DATA"

dir   /r | find ":$DATA"

第一个将在所有子目录中搜索.第二个仅在当前文件夹中搜索.这些还会显示分配给目录的ADS.仅适用于文件:

the first will search in all sub-directories.The second only in current folder. These will show also the ADS assigned to the directory.For only files:

dir /a-d  /s /r | find ":$DATA"

这篇关于如何在命令提示符下仅显示具有备用数据流的文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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