Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

REN and NTFS streams?

May
13,000
174
The help doesn't say that REN supports NTFS streams and apparently it doesn't. It would be nice if it did.
Code:
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
foo

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

Note that while the help doesn't mention it, "DO x in @file" does support NTFS streams.
 
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

Back
Top