Good thinking Bruno. It seems to work.
I'm using
xcopy "$(OutDir)\*.exe" "$(SolutionDir)bin\" /Y
del "$(OutDir)\*.exe"
Where $(OutDir) points to $(SolutionDir)ilk
(The /Y says to overwrite the destination file if it already exists.)
The only problem is that Visual C++ rebuilds the exe file every time I
tell it to build, even though I haven't made any changes.
If I don't use the 'del' command on the 2nd line, then Visual C++ can't
tell if I've deleted the exe file in the bin directory, which isn't
brilliant either.
Any further ideas?
> The only problem is that Visual C++ rebuilds the exe file every time I
> tell it to build, even though I haven't made any changes.
>
> If I don't use the 'del' command on the 2nd line, then Visual C++ can't
> tell if I've deleted the exe file in the bin directory, which isn't
> brilliant either.
why would you need to delete the exe anyway?
it shouldn't be a problem that it is both in outdir and in solutiondir\bin?
anyway, if there is a file copy problem, maybe you can add a pre-build step
to delete the output files in outdir.
that way they will be gone when the post-build step is executed.

Signature
Kind regards,
Bruno van Dooren
bruno_nos_pam_van_dooren@hotmail.com
Remove only "_nos_pam"