Click here to Skip to main content
15,890,123 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,
Code:

C#
Folder fldr = shl.NameSpace(@"C:\App\Documents");
FolderItem itm = fldr.ParseName("2812122a6f-be0f-4eb0-a82a-8c2daa541233.xlsx");
for (int i = 0; i < 100; i++)
{
    string propValue = fldr.GetDetailsOf(itm, i);
    outputfile.WriteLine(propValue);
    outputfile.WriteLine(fldr.GetDetailsOf(null, i));

    if (propValue != "" && fldr.GetDetailsOf(null, i)=="Comments")
    {
        Comments  = propValue;
    }
}


In my local machine (Windows 7) i get:
comment field value

On server (Windows Server 2008) : emtpy string
Posted
Comments
Kornfeld Eliyahu Peter 16-Mar-15 5:44am    
"The information available for an item depends on the folder in which it is displayed. This value corresponds to the zero-based column number that is displayed in a Shell view." - https://msdn.microsoft.com/en-us/library/windows/desktop/bb787870%28v=vs.85%29.aspx
Member 10031219 16-Mar-15 6:09am    
already tried the same way posted in your link
Herman<T>.Instance 16-Mar-15 5:44am    
does the application have sufficient rights to read these details?
Member 10031219 16-Mar-15 6:09am    
yeah the application have all the rights to read these details :S

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900