在xcopy语句中获取退出代码4 [英] Getting exit code 4 in xcopy statement
问题描述
大家好,
在我的项目中,我正在触发预构建事件,其中将dll从一个中央文件夹复制到应用程序的bin/debug文件夹.
我的预建活动是
Hi all,
In my project I am firing pre-build events in which I am copying dll from one central folder to the bin/debug folder of the application.
My pre-build event is
xcopy /s /y "..\..\..\..\..\..\..\..\..\AssemblyReferences\Internal" "$(TargetDir)"
该语句返回退出代码4.
如果您有任何想法,请告诉我.
this statement is returning exit code 4.
Please let me know if you have any soultion to it.
推荐答案
(TargetDir)"
(TargetDir)"
该语句返回退出代码4.
如果您有任何想法,请告诉我.
this statement is returning exit code 4.
Please let me know if you have any soultion to it.
XCopy错误代码4:
XCopy Error code 4:
Insufficient memory to copy files or invalid drive or command-line syntax.
检查当前目录路径,正在使用的".."数量,以及最终路径是否不正确超过您特定操作系统的Windows最大路径长度.在某些系统上,它的字符数低至260个.
Check your current directory path, the number of ".."s you are using and that the final path does not exceed the windows maximum path length for your specific OS. On some systems it is as low as 260 characters.
这篇关于在xcopy语句中获取退出代码4的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!