Herbert,
> But the correct syntax would be:
"Houston, we have a problem"
I believe you, but I can't write to an ADS using that double-double-colon
way. I however can using a single double-colon.
echo hello> test::$DATA
works, but stuffs the "hello" into the "test" file.
echo hello> test::$BLA
doesn't work. At all.
echo hello> test:$DATA
echo hello> test:$BLA
works, the "hello" gets stuffed ito the "$DATA" / "$BLA" ADS (the "test"
file stays empty.)
> echo hello>c:xyz:$data (does work, but not as expected: xyz:$data:$DATA)
:-) That, "but not as expected" is what your thread started with.
> The real problem is, if you use a "for %%i in (*.*) loop to
> write or read alternate data streams and there are file
> names with a single letter, you get in trouble.
True, but not for the reason you made it appear as. You get in trouble
(doesn't work as expected) *regardless* of the "::$DATA" postfix.
> because then not the file "c" but the file "c." is created (which
> gets you into even bigger trouble).
:-) Luckily I realized that before trying it out. <phew!>
>echo abc>test.txt
>echo abc>test.txt::$DATA
>
>are the same.
<whistle> I only realized that that was what happened after posting my
previous message (It has been a while after I looked into ADS).
Regards,
Rudy Wieser