User forums > General (but related to Code::Blocks)

Multiple output copies

(1/1)

sn4re:
Hi,

I was wondering if there is a way to create multiple copies of the output file?
What I want to do is put one copy of the .exe inside the project folder (eg. ".\bin\Debug" - that's what I am doing now) and the other one to a folder, where I would hold the executables and libraries needed for all my programs (eg. "$(#desktop)\myProjects").

I know I can just manually copy the .exe to the other folder, but I'm wondering if there's a way to automate it?

Thanks in advance!
(btw, using Win XP and C::B svn build 4905)

Jenna:
You can define pre- and post-build steps in the build options of your target/project.
There you can launch for example a batchfile or just a single command.

sn4re:
All I had to do was a simple "cmd /c copy from to" command :)
Thank you very much!

Navigation

[0] Message Index

Go to full version