By registering with us, you'll be able to discuss, share and private message with other members of our community.
SignUp Now!Yes, I know. But it produces a ton of unwanted information. This works.DIR/: list the files and their possible streams.
You can process DIR's output through a small script and display the information you want.
dir /f /: /s c:\users\vefatica\* | grep :.*:
C:\users\vefatica\Desktop\Stuff\MercuryConsole.zip:Zone.Identifier:$DATA
C:\users\vefatica\Desktop\Stuff\mseinstall.exe:Zone.Identifier:$DATA
C:\users\vefatica\Desktop\Stuff\plantronics.pdf:Zone.Identifier:$DATA
<snip>
Yes, I know. But it produces a ton of unwanted information. This works.
I was wondering about doing it without externals. What did you have in mind for a script?Code:dir /f /: /s c:\users\vefatica\* | grep :.*: C:\users\vefatica\Desktop\Stuff\MercuryConsole.zip:Zone.Identifier:$DATA C:\users\vefatica\Desktop\Stuff\mseinstall.exe:Zone.Identifier:$DATA C:\users\vefatica\Desktop\Stuff\plantronics.pdf:Zone.Identifier:$DATA <snip>
dir /: | FileWithStream.btm
@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
Duh! I should have thought of FFIND. ... better yet, TPIPE could probably do the grep-ing and remove the ":$DATA".This worked for me:
Code:dir /f /s /: c:\ | ffind /v /e"C:\\.+:"