AltStreamDump is a console application (Command Prompt) that dumps the list of NTFS alternate streams found in the current directory. By using a few command-line options, you can also instruct AltStreamDump to displays the alternate streams list of other folders and to scan subfolders in the desired folder depth.
@echo off
:: pipe DIR output, display files with streams
setlocal
setdos /X-6
do xLine in @con:
iff "%xLine" eq "" then
echo.
elseiff %@isdigit[%@left[1,%xLine]] == 1 then
:: file: store the line
set vLastFile=%xLine
else
:: stream (display file) or other line
iff %@index[%xLine,octets dans] ge 0 then
set vLastFile=
elseiff "%vLastFile" ne "" then
echo %vLastFile
set vLastFile=
endiff
echo %xLine
endiff
enddo
endlocal
- it is designed to filter the output of DIR/: ; for DIR/F/: you have to write it differently
- it displays the files and the stream; if you want only the files, you have to write it differently
- it depends on the language (here through the french "octets dans" string, that identifies the first line of DIR's summary)
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.