Link to home
Start Free TrialLog in
Avatar of jana
janaFlag for United States of America

asked on

How to identify ATTRIBUTE column in exported data from WizTree

Hi Exports!


I have been using WizTree from Diskanalyzer, a recommendation from of the Experts in a previous question (it has been a great tool).  Today I started exporting data from the apps to further analize and found that Attributes is exported in a value instead og A, H, R, etc. (as the link WizTree Guides (diskanalyzer.com) states:

User generated image


The excel I am working with is over 40,000 lines and the "Attribute" column has given the following values:

0388,226
12888,230
25508,231
38,192268,435,456
68,194536,870,918
328,196536,870,950
338,1982,147,483,654
348,224
358,225


I have tried to calculate the above values to identified what combination could be (ex. ARH)


How can I identify what is the actual attribute?


Thank you in advance


ASKER CERTIFIED SOLUTION
Avatar of David Johnson, CD
David Johnson, CD
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

I assume that only the first column in your sample data represents the file attribute values. I say this because I can decode each of those values as a combination of R, H, S, A & C. I cannot make a similar decode for the other two columns.


Each of the values being added are a power of 2, so you can look at different bit positions to determine whether R, H, S, A or C are present.


If you have Excel 2021 or Microsoft 365, you may use the following formula to convert the sum in cell A2 into a code like AHR.

=CONCAT(SWITCH(SEQUENCE(11)*MID(RIGHT("00000000000" & DEC2BIN(A2),11),SEQUENCE(11),1),11,"R",10,"H",9,"S",6,"A",1,"C",""))

Open in new window


For older version of Excel you can try a UDF.


Function attr(c As Integer)
    Dim binc As String
    Dim i As Integer
    binc = WorksheetFunction.Dec2Bin(c)
    For i = 1 To Len(binc)
        attr = IIf(Mid(binc, Len(binc) + 1 - i, 1) = 1, _
            Choose(i, "R", "H", "S", "", "", "A", "", "", "", "", "C"), "") & attr
    Next i
End Function

Open in new window


and call it with 

=attr(A2)

Open in new window


Avatar of jana

ASKER

Thank u guys!


David Johnson, CD,

I ran the script and only 0, 8192 and 268435456 returned No Info (see results below)

 

WizTree ValuePS Results
0no info
1R
2H
3HR
6SH
32A
33AR
34AH
35AHR
38ASH
288A
550ASH
8192no info
8194H
8196SH
8198SH
8224A
8225AR
8226AH
8230ASH
8231ASHR
268435456no info
536870918SH
536870950ASH
2147483654SH


Hi byundt,

  • About the columns, is only one, I just divided in for viewing and placed a comma - in answering David Johnson, CD, I placed it in one column
  • Unfortunately, I couldn't test your formula, I have here Excel 2010, can u provide in v2010?


Hi Saqib Husain,

I compare your script against Davids and 0 then 550 thru 2147483654 couldn't identify it.

User generated image


SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jana

ASKER

Yes, thanx, same results as David Johnson, CD.


However, I still haven't been able to identify the missing value: 18192, 268435456


I will spot check the files against the script going directly to the files and run "ATTRIB" (or see their Propeties)

Avatar of jana

ASKER

Status:


There are over 10 million files, so I spot check a lot to see if u guys script didn't square off, they did (I compare u guys result with the actual file ans matches the script result_ - except the below:


0            = seems ia file with no attributes
8192         = ?
268435456    = ?
2147483654   = could be SH

Open in new window


I will proceeds to close the question, if u guys find out the above missing, greatly appreciated