Page 1 of 1

Scripting: Bitwise?

Posted: 29 Nov 2011 19:46
by Zardoz2293
Scripting. Attributes, I don't see where or how to perform bitwise compare.

i.e., attrstamp( "h", 0, "<curpath>" )

Thanks

Re: Scripting: Bitwise?

Posted: 06 Dec 2011 09:22
by admin
You want to retrieve the file attributes of items? Not possible yet.

Also bitwise comparison operators are not existing yet.

Re: Scripting: Bitwise?

Posted: 06 Dec 2011 12:38
by TheQwerty
admin wrote:You want to retrieve the file attributes of items? Not possible yet.

Code: Select all

Report('{attr}|', $items);
Then you can use string comparisons to get around the unfortunate lack of bitwise ones.

Re: Scripting: Bitwise?

Posted: 07 Dec 2011 08:58
by admin
TheQwerty wrote:
admin wrote:You want to retrieve the file attributes of items? Not possible yet.

Code: Select all

Report('{attr}|', $items);
Then you can use string comparisons to get around the unfortunate lack of bitwise ones.
LOL, thanks for the tip. :)

Re: Scripting: Bitwise?

Posted: 07 Dec 2011 12:35
by TheQwerty
admin wrote:LOL, thanks for the tip. :)
If you wish to repay the favor: documenting the full list of attribute abbreviations and their order under Report() or "Columns in the File List" would be appreciated. :mrgreen:

Re: Scripting: Bitwise?

Posted: 07 Dec 2011 13:54
by admin
OK, done. :)

Attr: File Attributes, in the follow order:

Code: Select all

R = READONLY 
H = HIDDEN
S = SYSTEM  
D = DIRECTORY
A = ARCHIVE
N = NORMAL
T = TEMPORARY
J = REPARSE_POINT (=Junction)
C = COMPRESSED
O = OFFLINE
I = NOT_CONTENT_INDEXED
E = ENCRYPTED