Windows copy command return codes?

前端 未结 5 516
[愿得一人]
[愿得一人] 2020-12-15 16:43

I would like to test for the success/failure of a copy in a batch file, but I can\'t find any documentation on what if any errorlevel codes are returned. For example

<
5条回答
  •  陌清茗
    陌清茗 (楼主)
    2020-12-15 17:16

    There is also one point I would like to emphasize: xcopy as well as robocopy can only copy files, but they can't rename them.
    While looking at the original situation (copy x y, which looks like a rename to me), I have the impression that the copy command still is the only one suitable for this purpose.

提交回复
热议问题