1.

Solve : File Title in MS-DOS?

Answer»

Hi all GREETING from Arul rajah

I am very new to this forum, Here I want to get clarification it's POSSIBILE to view file title attribute in MS-DOS

here I have attached windws explorer screen shot for your reference what i am trying to get in DOS

thanks in advance

regards
a r u l

[attachment deleted by admin]attrib Command will view/change file attributes.Hi thanks for your reply

but I have not seen any attrib command for viewing file title attrib in MS-DOS

pls refere the attached jpg file for more information

thanks

regards
a r u lWelcome to the CH forums Arul.

The Title entry in the listing is not an attribute and will be blank unless a file title has been allocated (by you).

Right click on the file, select Properties, Summary and enter the title you have chosen in the Title box. Click Apply, OK and the title you entered will be displayed in the listing. That's it in Explorer in Windows XP, I don't know any method of displaying the Title in MS-DOS or from the Command Prompt.

Good luckHi Dusty

thanks for your information!

regards
a r u lQuote from: Dusty on March 02, 2009, 11:54:57 PM

I don't know any method of displaying the Title in MS-DOS or from the Command Prompt.

This is a feature of Alternate Data Streams. Only possible in NT TYPE OSs on NTFS volumes. Yes, I played with ADS some time ago but decided it has no benefits for me, possibly as I've nothing worth "hiding" LOL

For anyone interested in ADS there's a MOUNTAIN of info on the web and I recommend reading this article even though it's out-of-date. I'm not certain that all anti-virus/malware detection programs (especially the free ones) can pick up malicious routines 'hidden' in ADS.

alternate data streams are a giant PITA to work with from a programmatic standpoint. MS decides, hey, let's add this feature, but let's NOT expose any sane API to work with it. Nope, instead we will force programmers to figure out for themselves they need to use BackupRead() to read the stream headers. yep, much more sane that way.


Unbelievable that ADS's have existed since NT4, but it took MS three versions to introduce the slightly more sane Stream enumeration API.

this has Piqued my interest for a feature of my BCFile library to enumerate streams...Quote from: BC_P
this has Piqued my interest for a feature of my BCFile library to enumerate streams...

Am glad you picked up on that, I now know to whom all ADS queries should be addressed heh, less then an hour later and the feature is added somewhat. Really my library is trying to REPLACE the FileSystemObject scripting objects, and enhance their features.

Now to fix my FileStream class to expect a interface rather then a specific CFile, so that lines like this will be valid:

Set AltStream = GetFile("C:\test.doc").AlternateStreams("HIDDEN").OpenAsBinaryStream(GENERIC_READ,FILE_SHARE_WRITE)


Discussion

No Comment Found