项目目录:SourceCode\公共组件\KApiClient\ 要复制的目的目录: SourceCode\公共组件\DllLibrary\ApiClient 则在项目 KApiClient下添加如下: Set OD="$(ProjectDir)..\DllLibrary\ApiClient" attrib "%OD%\$(TargetName).*" -r -a -s -h copy $(TargetName).* "%OD%"