This article was previously published under Q265114
This article has been archived. It is offered "as is" and will no longer be updated.
When you attempt to encrypt a folder you may receive the following error message:
An error occurred applying attributes to the file: X:\Filename. Access is denied.
This error can occur because a folder or a file within the folder has the System attribute applied to it.
To resolve this behavior, remove the System attribute from any files in the folder and from the folder itself.
IMPORTANT: Do not attempt to change attributes or to encrypt files in the Winnt or %Systemroot% folders or subfolders as you may not be able to restart your computer.
To display, set or remove attributes assigned to a file or folder use the attrib command. This command displays, sets, or removes the Read-Only, Archive, System, and Hidden attributes assigned to files or to folders.
The syntax for the attrib command is:attrib [+r|-r] [+a|-a] [+s|-s] [+h|-h] [[drive:][path] filename] [/s[/d]]
+r Sets the Read-only file attribute.
-r Clears the Read-only file attribute.
+a Sets the Archive file attribute.
-a Clears the Archive file attribute.
+s Sets the System file attribute.
-s Clears the System file attribute.
+h Sets the Hidden file attribute.
-h Clears the Hidden file attribute.
[[drive:][path] filename] Specifies the location and name of the directory, file, or set of files you want to process. You can use wildcard characters (? and *) in the filename parameter to display or to change the attributes for a group of files.
/s Processes matching files in the current directory and all of its subdirectories.