0
Reply

GetAttributes on DFS

Ask a question
Marc Geerts

Marc Geerts

14y
2.9k
1

I like to read file attributes (ReadOnly attribute) using .NET function File.GetAttributes(). This works fine on a local drive, but when using the function on a network share (DFS with reparse points) the function allways returns AttributeNormal. The DOS function ATTRIB does return the right attributes. Does anyone have a clue?
Setting an attribute with File.SetAttributes() works OK.
Marc