REN and NTFS streams?

May 20, 2008
Syracuse, NY, USA
The help doesn't say that REN supports NTFS streams and apparently it doesn't. It would be nice if it did.
v:\> touch /c test.txt
2019-05-18 12:59:21.718  V:\test.txt

v:\> echo foo > test.txt:stream

v:\> d /: test*
2019-05-18  12:59               0  test.txt
                                5    stream:$DATA

v:\> type test.txt:stream

v:\> ren test.txt:stream test.txt:stream1
V:\test.txt:stream -> V:\test.txt:stream1
TCC: (Sys) The parameter is incorrect.
     0 files renamed       1 failed

Note that while the help doesn't mention it, "DO x in @file" does support NTFS streams.
May 20, 2008
Syracuse, NY, USA
Perhaps you could convince Microsoft to support that!
It's a bit surprising but not-very-careful testing says MoveFile(Ex) won't do it. Likewise for CopyFile(Ex). But TCC manages to copy them OK. What's up with that?

I also tried SHFileOperation (also not very carefully) and that didn't work either.

Similar threads