다음 PowerShell 스크립트는 리소스가없는 경우 작동합니다.
Copy-Item $src_dir $dst_dir$agent_folder -recurse
그러나 리소스가 있으면 다음과 같이 표시됩니다.
+ Copy-Item <<<< $src_dir $dst_dir$agent_folder -recurse
+ CategoryInfo : ResourceExists: (C:\Users\Pac\Desktop\Agents\Agent0\lib:S
tring) [Copy-Item], IOException
+ FullyQualifiedErrorId : DirectoryExist,Microsoft.PowerShell.Commands.CopyItemComm
and
무조건 파일을 복사하려면 명령에 무엇을 추가해야합니까?