0
아래와 같이 폴더를 다른 폴더에 복사하는 psake 태스크를 작성 중입니다.psoc에서 Robocopy 액세스 거부 오류를 무시하는 방법?
task -name CopyComponentToBundle -description "Copy the component to bundle" -action {
Write "Component source is $ComponentPath"
Write "Component Destination is $ComponentBundlePath"
exec {
Robocopy $ComponentPath $ComponentBundlePath /MIR /R:0 /W:0
}
}
폴더는 성공적으로 복사되지만 여전히 아래와 같은 오류가 발생합니다. C에서
: \ 프로그램 파일 \의 WindowsPowerShell \ 모듈 \ psake \ psake.psm1 : 156 문자 : 17 + 던져 ("Exec에서"+ $ errorMe의 ssage) +
~~~~~~~ ~== >> 예외 : Exec : 오류 실행 명령 Roboc opy $ ComponentPath $ ComponentBundlePath/MIR/R : 0/W : 0.
오류를 무시할 수있는 방법이 있습니까? 모든 오류는 "액세스가 거부되었습니다".