Okay, I'm not saying this is a bug quite yet.

Wanted to get other opinions first or explanation of why you think it works that way.


This code does not work!

Code:
If Not GetFileAttr('C:\BOGUS') & 16
MD 'C:\BOGUS'
'Recreated directory: ' + @ERROR + ' ' + @SERROR ?
EndIf



But this code does work!

Code:
If Not GetFileAttr(('C:\BOGUS') & 16)
MD 'C:\BOGUS'
'Recreated directory: ' + @ERROR + ' ' + @SERROR ?
EndIf



From the manual / or rather the .CHM of the manual has this example and it works.


Code:
 $Result = GetFileAttr(@LDRIVE + "\Kix32.exe")
IF GetFileAttr( "C:\TEMP" ) & 16
; Bitwise AND on 4th bit
? "C:\temp is a directory !"




Why does checking the folder there with the & 16 outside the parens work but using the NOT does not seem to work outside the parens.?