Hidden file attribute is copied when you run the Robocopy command together and /NoDCopy option in Windows

Applies to: Windows 8.1 EnterpriseWindows 8.1Windows 8.1 Pro

Symptoms


Consider the following scenario:
  • You have a computer that is running Windows 8.1, Windows RT 8.1, Windows Server 2012 R2, Windows 8, Windows RT, or Windows Server 2012.
  • At a command prompt, you use the Robocopy command together with the /NoDCopy option to copy files from a source directory.

    Note The /NoDCopy option does not copy directory information, such as the DOS-style attributes, the extended attributes, or the hidden file attributes.
  • The source directory contains some hidden files that have the hidden directory attributes.
In this scenario, the copy of the hidden files in the destination directory is unexpectedly hidden. Actually, the hidden file attributes should not be copied. Therefore, the copy of the hidden files should not be hidden.

Cause


This issue occurs because the Robocopy command ignores the /NoDCopy option and instead copies the hidden directory attributes.

Resolution


To resolve this issue in Windows 8.1, Windows RT 8.1, or Windows Server 2012 R2, install update rollup 2962409.
To resolve this issue in Windows 8, Windows RT, or Windows Server 2012, install update rollup 2962407, or install the hotfix that is described in the "Hotfix information" section.

Update information

For more information about how to obtain the update rollup packages, click the following article numbers to view the articles in the Microsoft Knowledge Base:
2962409 Windows RT 8.1, Windows 8.1, and Windows Server 2012 R2 update rollup: June 2014
2962407 Windows RT, Windows 8, and Windows Server 2012 update rollup: June 2014


Hotfix information

A supported hotfix is available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing the problem described in this article. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next software update that contains this hotfix.

If the hotfix is available for download, there is a "Hotfix download available" section at the top of this Knowledge Base article. If this section does not appear, contact Microsoft Customer Service and Support to obtain the hotfix.

Note If additional issues occur or if any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. For a complete list of Microsoft Customer Service and Support telephone numbers or to create a separate service request, visit the following Microsoft website: Note The "Hotfix download available" form displays the languages for which the hotfix is available. If you do not see your language, it is because a hotfix is not available for that language.

Prerequisites

To apply this hotfix, you must be running Windows 8 or Windows Server 2012.

Registry information

To apply this hotfix, you do not have to make any changes to the registry.

Restart requirement

You may have to restart the computer after you apply this hotfix.

Hotfix replacement information

This hotfix does not replace a previously released hotfix.

Status


Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the "Applies to" section.

More Information


For more information about the Robocopy command, go to the following Microsoft website: For more information about the "/NoDCopy" option, click the following article number to view the article in the Microsoft Knowledge Base:
2646535 Significantly slower directory tree replication performance when you use the Robocopy command in Windows 7 or in Windows Server 2008 R2
For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates