Get the Label Color

How do I get the Label of a file? GetLabel() tells me the color and text of an item inthe Label menu but I want to be able to get the label of a file or folder and set the label to another color from within my application.
dwp090598Asked:
Who is Participating?
 
boonstraConnect With a Mentor Commented:
You want bits 1-3 of the fdFlags field of the FInfo record of the file.

Use
  GetFInfo(fileName, vRefNum, &fndrInfo)
to the the fndrInfo, and then look at
  (fndrInfo.fdFlags>>1)&0x07
0
 
boonstraCommented:
Forgot to add that SetFInfo lets you change the file finder info,. including the label/color.
0
 
dwp090598Author Commented:
Right on the money as usual Bob, should have figured this one out myself.

Thanks
0
All Courses

From novice to tech pro — start learning today.