REN and NTFS streams?

May 20, 2008
11,520
102
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.
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.
 
May 20, 2008
11,520
102
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
Thread starter Title Forum Replies Date
Jesse Heines Using Regular Expressions with the REN commanc Support 8
C Documentation Help Nit. REN / RENAME Support 0
D How to? Use regular expression with REN? Support 2
samintz REN implied .* Support 2
F Regexes in REN/MOVE/… commands seem to not work at all Support 3
D How to? Wildcards as sets - looping issue with FOR and REN Support 7
samintz WAD Weird REN bug Support 6
S REN and FOR %a with files Support 8
nickles REN bug Support 11
Phileosophos ren /s does not process subdirectories Support 3
M Ren command confusion Support 13
S Strange REN problem - non-English characters Support 3
T REN a TCC Tab from command line Support 9
Tim Rowe NTFS Descriptions not working Support 13
Joe Caverly @FILESIZE and NTFS File Stream Support 1
Joe Caverly PSHELL and NTFS File Streams Support 2
vefatica NTFS descriptions? Support 7
L How to copy an old xp drive to a large ntfs drive Support 6
S NTFS file compression via ATTRIB Support 2
C Directory listing that shows NTFS file descriptions? Support 3
Joe Caverly ZIPing individual NTFS File Streams Support 4
C NTFS Descriptions don't work? Support 3
Joe Caverly MKLINK and Streams and DEL Support 4
vefatica PDIR and streams Support 1
vefatica DIR /F and streams? Support 7
vefatica Finding files with alternate data streams? Support 4
L How to? Character transfer among @BALLOC buffers, command tails, and possibly redirected standard streams Support 11
L alternate streams size not counted Support 7
vefatica Get a list of all files with alternate streams? Support 11
vefatica DIR, streams, and wildcards? Support 1
vefatica DIR /: /u ... streams not counted? Support 7
samintz Deleting streams Support 2

Similar threads