Page 1 of 1

Done: HxD: Allow editing of NTFS file stream

Posted: 14 Feb 2007 20:30
by mhurley
It would be nice to edit/view an NTFS alternate stream on files and folders. In case you didn't know, these streams are accessible with the following syntax:

c:\dir:streamname
c:\dir\file.ext:streamname

Posted: 15 Feb 2007 21:51
by Maël
Fixed in development version.

A future version might add more special support for ADS (add, rename, delete alternate data streams).

Posted: 04 Apr 2007 14:08
by Maël
Done in actual beta version (see download section)

Posted: 12 Apr 2007 18:03
by mhurley
How is this functionality accessed?
In the Open File Dialog, I tried the following and none worked. All told me that it was an invalid path.

file.ext:$DATA
c:\fullpath\file.ext:$DATA
"c:\fullpath\file.ext":$DATA

Any ideas?
FYI, the top one I tried should be equivalent to just file.ext since $DATA is the main data stream.

Posted: 12 Apr 2007 20:01
by Maël
Opening ADS through the open dialog doesn't work as it considers it an invalid filename (I'll change that).

Though using the commandline HxD correctly opens alternate data streams, try the following (assuming you are in the directory where HxD is installed):

echo Hello > c:\test.txt:name123
more < c:\test.txt:name123

hxd c:\test.txt:name123


However file.ext:$DATA does not work, but also not with other utils like "more", try this:
more < c:\test.txt:$DATA

Posted: 15 Jul 2007 14:29
by Maël
Hi again,

[edit]
In general the syntax is
filename:streamname:streamtype
So for the above example streamname is the empty string and streamtype is $DATA.

That means the above example needs two colons to work:
c:\fullpath\file.ext::$DATA
"c:\fullpath\file.ext"::$DATA
[/edit]


In my development version I modified the open and save-dialogs such that you can enter filenames with ADS syntax, but all checking (like file exists ) still works. To keep the normal functioning of the open/save dialogs while accepting ADS syntax was quite a challenge, since the dialogs weren't designed for that, but now it works.

If you want to test, here is my development version (in German):
http://mh-nexus.de/downloads/HxD.zip

Naturally the stable version will be available in English, too.

Edit: Corrected the comments about the ADS syntax.

Re: Done: HxD: Allow editing of NTFS file stream

Posted: 27 Jul 2008 18:25
by Maël
The upcoming 1.7.6.4 will remove ADS support in the open dialog since it caused some bugs. You will still be able to open them using the command line, and probably later using some additional command specially made for ADS, which will be independent of the open dialog.