Basically the file is 'hidden' behind the test.txt in a hidden stream.. its invisible to the operating system unless you know how to get at it. We use the 'more' command instead of 'type' as type does not understand file streams.. most windows commands don't.
This raises lots of interesting possibilities as those who know about this -- usually top notch crackers -- can hide files right under your nose and you would have no idea ! I have only seen this once.. a network sniffer hidden behind notepad.exe ! There was of course no visible indication of the file being present until you actually searched for the hidden stream.
What I wanted to know is how do you delete, or copy hidden streamed files ? I know that there are a few utilities that can show you the alternate streams, but I need to manipulate these streams.
Its quite scary isn't it ? Microsoft hasn't publicised this wonderful 'feature'. There are a couple of papers that go into detail, I haven't read through them yet as I'm at work.