Visual Studio 2010 移植项目中的 Robocopy 错误

发布于 2024-10-19 14:10:34 字数 1278 浏览 5 评论 0原文

我已经将一个 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

你的背包 2024-10-26 14:10:34

尝试查看项目属性、构建事件、构建后事件。

Try looking in the project properties, Build Events, Post-build event.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文