Additional attributes in Change Attributes dialog

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Additional attributes in Change Attributes dialog

Post by *MarcinW »

In File -> Change Attributes dialog, TC handles many file attributes:

- some directly in "Change attributes" group,
- date/time can be changed below,
- and below is a "tc" plugin with many extended attributes - in conjunction with two previous options, it handles all the file attributes described in SetFileAttributes function, like "compressed" or "encrypted" - but except:

a) FILE_ATTRIBUTE_NOT_CONTENT_INDEXED,
b) FILE_ATTRIBUTE_OFFLINE,
c) FILE_ATTRIBUTE_TEMPORARY.

So I'd like to ask to add these attributes to "tc" plugin. Especially FILE_ATTRIBUTE_NOT_CONTENT_INDEXED is useful, because it can exclude some files from indexing.

Regards
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

FILE_ATTRIBUTE_TEMPORARY
This makes no sense, it's used for files which are created temporarily - Windows will delete files with this attribute when they are closed.
FILE_ATTRIBUTE_NOT_CONTENT_INDEXED
I didn't know this one, seems to be something new.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

I didn't know this one, seems to be something new.
It should be quite old one if it is the attribute allowing indexing which may be set from advanced attributes dialog ('Other...' button on General tab of Properties window).
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

To be precise, FILE_ATTRIBUTE_TEMPORARY directs the operating system not to delete the file after close, but to cache file contents in memory when possible - because disk operations are slow and this is a temporary file that application is going to delete after close.

Having this attribute in TC could be useful in particular to clear this attribute when debugging problems with some applications - to enforce writing all data to file, to be able to view file contents.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

MarcinW, it may be easilly done with custom WDX plugin.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

You are of course right. I can use a custom plugin, I can also write a 5-lines program that will clear the file attribute. I can also launch some problematic application under the debugger and clear the attribute flag when creating a file. But using TC would be the most straightforward way, wouldn't it? ;)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You know, 'compressed' and 'encrypted' attributes also can't be set directly via a checkbox in Attributes dialog, you need to use plugins section. And if we need to use plugins anyway, it doesn't matter which plugin to use: internal or custom one...
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

It's just a bit easier when I must do something on a third party machine and everything I must do is to download TC, without installing any additional plugins...
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

What will you do if third-party PC has no internet connection? Why not to use portable TC instead? All you need to do is put TC to your USB stick and tweak it ONCE.
User avatar
MarcinW
Power Member
Power Member
Posts: 852
Joined: 2012-01-23, 15:58 UTC
Location: Poland

Post by *MarcinW »

I agree. I have of course TC on pendrive. I just sometimes haven't this pendrive by me in my private life and I must unexpectedly repair something.
Post Reply