This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 3 years ago.
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(3)
有趣的是,我只是想 xcopy 并遇到了同样的问题,我知道这已经晚了 7 年,但它可能有助于
使用 /h /s /e 似乎可以正确复制隐藏文件和目录
funny I was just trying to xcopy and had the same issue, i know this is 7 years late but it might help
using /h /s /e seems to copy hidden files and directorys correctly
正如 @xanatos 所说,它复制 Windows 7 中的隐藏文件夹。
我无法让它复制 Windows 2003 Server 中的隐藏文件夹,是的,即使使用 /h 开关也是如此。隐藏文件,是的,但不是隐藏文件夹。
诡异的。
As @xanatos says, it copies hidden folders in Windows 7.
I couldn't get it to copy hidden folders in Windows 2003 Server, yes, even using the /h switch. Hidden files, yes, but not hidden folders.
Weird.
尝试添加/s。 /e 应该解决这个问题,但似乎没有这样做。我刚刚使用 /s 对此进行了测试,它为我提供了用户配置文件的隐藏文件夹以及每个文件夹的所有内容。
Try adding /s. /e should be taking care of that, but doesn't appear to be doing so. I just tested this with a /s and it gave me the hidden folders of a user's profile, as well as all the content of each.