diff --git a/Remotely_ScreenCast/Remotely_ScreenCast.csproj b/Remotely_ScreenCast/Remotely_ScreenCast.csproj
index 6ec2cee2..1a830447 100644
--- a/Remotely_ScreenCast/Remotely_ScreenCast.csproj
+++ b/Remotely_ScreenCast/Remotely_ScreenCast.csproj
@@ -182,7 +182,7 @@
- copy /y "$(TargetPath)" "..\$(ProjectDir)Remotely_Agent\Resources\"
+ powershell -Command "& {Copy-Item -Path '$(TargetPath)' -Destination ((Get-Item -Path '$(ProjectDir)').Parent.FullName + '\Remotely_Agent\Resources') -Force }"