| Subject: Creating streams from command prompt on NTFS |
| Group: microsoft.public.windows.developer.winfx.winfs |
| Date: 12/1/2005 6:20:08 PM |
| From: "Riley DeWiley" [Email Address Protection] |
Slightly off topic but this the best NG I could find. I want to create file streams using basic command line inputs, or any simple utility. For instance: dir > aaa.txt dir > aaa.txt:mystream type aaa.txt type aaa.txt:mystream In theory this should work but my command window on WinXP/NTFS does not like the syntax: C:\stream>dir > aaa.txt (--->produces file of 333 bytes) C:\stream>dir > aaa.txt:mystream (---> file size does not change, suspicious) C:\stream>type aaa.txt:mystream (--->shouldn't this work???) The filename, directory name, or volume label syntax is incorrect. C:\stream>type aaa.txt:$DATA (--->shouldn't this work???) The filename, directory name, or volume label syntax is incorrect. C:\stream>type aaa.txt::$DATA (--->shouldn't this work???) The filename, directory name, or volume label syntax is incorrect. C:\stream>type aaa::$DATA (--->expect to fail) The filename, directory name, or volume label syntax is incorrect. I am working as directed on http://windowssdk.msdn.microsoft.com/library/default.asp?url=/library/en-us/FileIO/fs/file_streams.asp What's going on? I have seen this work over someone else's shoulder. Eric |
| Back |