How to display only files that have alternate data streams in Command Prompt

csharpnewbie picture csharpnewbie · May 2, 2013 · Viewed 17.4k times · Source

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?

Answer

npocmaka picture npocmaka · May 28, 2013
dir   /s /r | find ":$DATA"

or

dir   /r | find ":$DATA"

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"