How can I change an attribute on an existing folder?
I have to make this folder and all files existing in it visible.
C:\Documents and Settings\%USER%\appdata
I found this code:
FileAttributes attributes = File.GetAttributes(@"C:\Documents and Settings\%user%\Dane aplikacji");
attributes = RemoveAttribute(attributes, FileAttributes.Hidden);
private static FileAttributes RemoveAttribute(FileAttributes attributes, FileAttributes attributesToRemove)
{
return attributes & ~attributesToRemove;
}
but it's not working :(
thanks !