Visual Studio 2010 移植项目中的 Robocopy 错误
我已经将一个 C++ 项目从 VS 2005 移植到 2010。当它编译时,使用 rc (robocopy) 复制项目输出时会出现以下错误。我找不到任何地方可以为此过程配置开关。我如何标记以防止错误?
谢谢, 格里
生成代码...
1> 1> ------------------------------------------------------------------------------- 1> ROBOCOPY :: Robust File Copy for Windows :: Version XP026 1> ------------------------------------------------------------------------------- 1> 1> Started : Tue Mar 01 14:25:00 2011 1> 1> Source - 1> Dest - 1> 1> Files : 1> Options : /COPY:DAT /R:1 /W:1 1> 1> ------------------------------------------------------------------------------ 1> 1>RC : error : Invalid Parameter #1 : "/D" 1> 1> Simple Usage :: ROBOCOPY source destination /MIR 1> 1> source :: Source Directory (drive:\path or \\server\share\path). 1> destination :: Destination Dir (drive:\path or \\server\share\path). 1> /MIR :: Mirror a complete directory tree. 1> 1> For more usage information run ROBOCOPY /? or read Robocopy.Doc. 1> 1> NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR ! 1> **** /MIR can DELETE files as well as copy them !
I've ported a C++ project from VS 2005 to 2010. When it compiles it gives the error below when using rc (robocopy) to copy project outputs. I can't find any place to configure switches for this process. How do I can the flag to prevent the error?
Thanks,
Gerry
Generating Code...
1> 1> ------------------------------------------------------------------------------- 1> ROBOCOPY :: Robust File Copy for Windows :: Version XP026 1> ------------------------------------------------------------------------------- 1> 1> Started : Tue Mar 01 14:25:00 2011 1> 1> Source - 1> Dest - 1> 1> Files : 1> Options : /COPY:DAT /R:1 /W:1 1> 1> ------------------------------------------------------------------------------ 1> 1>RC : error : Invalid Parameter #1 : "/D" 1> 1> Simple Usage :: ROBOCOPY source destination /MIR 1> 1> source :: Source Directory (drive:\path or \\server\share\path). 1> destination :: Destination Dir (drive:\path or \\server\share\path). 1> /MIR :: Mirror a complete directory tree. 1> 1> For more usage information run ROBOCOPY /? or read Robocopy.Doc. 1> 1> NOTE: Read "True Replication" in Robocopy.Doc prior to first use of /MIR ! 1> **** /MIR can DELETE files as well as copy them !
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试查看项目属性、构建事件、构建后事件。
Try looking in the project properties, Build Events, Post-build event.