Code::Blocks Forums
User forums => General (but related to Code::Blocks) => Topic started by: sn4re on February 28, 2008, 05:55:29 pm
-
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)
-
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.
-
All I had to do was a simple "cmd /c copy from to" command :)
Thank you very much!