does AzCopy have an exit code which can be used to throw error in a PowerShell script

笑着哭i 提交于 2019-12-11 13:01:24

问题


Like Robocopy (http://ss64.com/nt/robocopy-exit.html) does Azcopy have an exit code. If not what would be the best way to throw error for Azcopy when transfer was not successful inside a PowerShell script.


回答1:


Exit code 0 means transferring succeeded, other exit codes means different kinds of error in AzCopy. Currently we haven't officially announced meaning of all error codes.



来源:https://stackoverflow.com/questions/37746054/does-azcopy-have-an-exit-code-which-can-be-used-to-throw-error-in-a-powershell-s

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!