HELP nits

May 20, 2008
3,515
4
Elkridge, MD, USA
Topics f_attrib.htm and f_wattrib.htm both refer to optional file selection by attribute. This is not applicable to these functions.

It is unclear that when only one parameter (a filename) is used, both functions display all attributes.

It is not reported that if you specify an extended, NTFS-only attribute in @ATTRIB that attribute is considered to be OFF regardless of its actual state, and in the absence of the optional third, P, parameter will result in the function returning 0 regardless of the state of any other selected attribute.

It is very difficult to locate the interpretation of the optional third, P, parameter of @ATTRIB.
--
Steve
 

rconn

Administrator
Staff member
May 14, 2008
12,340
149
Topics f_attrib.htm and f_wattrib.htm both refer to optional file selection by attribute. This is not applicable to these functions.

That's deliberate, as the "Attribute Switches" topic has additional information on attributes.

It is unclear that when only one parameter (a filename) is used, both functions display all attributes.

@ATTRIB states this explicitly. @WATTRIB says it is similar to @ATTRIB, but admittedly doesn't repeat the contents of @ATTRIB.

It is not reported that if you specify an extended, NTFS-only attribute in @ATTRIB that attribute is considered to be OFF regardless of its actual state, and in the absence of the optional third, P, parameter will result in the function returning 0 regardless of the state of any other selected attribute.

The help says you should use @WATTRIB to query the extended attributes. The two functions are very different (for historical and compatibility reasons), and you cannot treat them as identical.

@ATTRIB (as documented) queries Windows for the attributes and then strips off all the extended attributes before comparing with your argument. This definitely will *not* change, as it would break backwards compatibility.
 
Similar threads
Thread starter Title Forum Replies Date
Charles Dye More help nits Support 0
Charles Dye Documentation Help nits: @ZIPFILECRC Support 0
R Documentation A couple of Help nits Support 0
Charles Dye Documentation Help Nits Forever: Checksum functions Support 0
samintz Documentation Help nits Support 5
Charles Dye Revenge of the Help Nits Support 0
samintz Documentation Help Nits Support 3
JohnQSmith Ye olde Help Nits Support 4
Charles Dye Doc nits: HELP BATCHDETECT Support 2
S Fixed Help nits Support 7
Charles Dye The eternal Help Nits thread Support 0
C web help nits Support 1
S More HELP nits Support 5
S HELP nits Support 9
S SET /A question; HELP nits Support 8
S HELP nits Support 0
dcantor 12.1 help nits Support 0
S HELP nits Support 3
samintz V12 Help Nits Support 5
S HELP nits Support 3
samintz How to? Search for %(command) in Help? Support 1
Joe Caverly Favorites in eWriter Help Support 6
Joe Caverly Quick Search in eWriter Help Support 1
vefatica Online help? Support 2
fishman@panix.com HELP!! I just updated to Version 28 and as usual I cannot make extended directory search work. Support 2
JohnQSmith New online help file wrong logo Support 7
Jay Sage Documentation Function @DRIVE Missing in Help Lists Support 0
D Documentation Typo in COPY help Support 0
FreezerBurnt Help making a CMD and TCC compatible batch file Support 7
Joe Caverly Documentation COMMANDS in Version 27 help Support 8
K_Meinhard How to? Help window position Support 7
U Command help on file names Support 5
D Documentation Help "Startup" page does not describe global lists Support 0
vefatica Help disappears? Support 6
rchapmanitt Help Purchasing Support 2
C version help Support 3
C Documentation Help Nit. REN / RENAME Support 0
Dmitry L. Kobyakov Documentation Error in the Help: the WINDOW command Support 0
vefatica Help for @PID Support 2
vefatica Need help with XML Support 3
Alpengreis Documentation Minor issue in help file for view /E Support 1
R Documentation Advanced Directives Help Support 0
R Documentation Help Nit with SETP Support 0
R wmic command help Support 9
R Documentation Help Nit > bdebugger View Menu Support 0
R Documentation Help typo Support 1
MikeBaas How to? I need help with RD Support 5
R Documentation v25 Help Comments Support 1
Joe Caverly DIRectory Colorization in v25 Help File Support 0
vefatica Help nit Support 0

Similar threads