When you build the project visuals studio gives the error as below.

Error 2 The command “xcopy /Q /Y E:\My Projects\test\*.*
E:\My Projects\bin\” exited with code 4.

Go to project Properties > Build Events

In Post-build event section you may find something like this: xcopy “$(ProjectDir)Library\dsoframer.ocx” “$(TargetDir)” /Y /E /D1

Remove this line. Save All. Build the Project again.

Error resolved. 🙂

Advertisements