Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 241
csharpnewbie Avatar asked May 02 '13 08:05

csharpnewbie


1 Answers

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"
like image 62
npocmaka Avatar answered Oct 28 '22 04:10

npocmaka