Skip to content

Streams #341

Answered by LTRData
spunkyvt asked this question in Q&A
Sep 21, 2023 · 6 comments
Discussion options

You must be logged in to vote

Okay, this is a bit complicated but in short, $DATA is not a stream name, it is a stream type. In this case for the main unnamed data stream of the file, the stream that you get if you just open the file without specifying a stream name. If you use dir /r at command prompt, you will not see :$DATA suffixed to the default streams even though it is technically there. $DATA is however suffixed to all other data stream names. In PowerShell it is kind of the other way around, when using Get-Content -Stream the output is suffixed with $DATA for the main unnamed stream only and not for any other named data stream. I understand that this could be confusing but it is the way it works. So if you us…

Replies: 6 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by spunkyvt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants