Code::Blocks Forums
User forums => Help => Topic started by: grunerite on February 02, 2006, 01:36:47 am
Title:
post-build steps under "Commands"
Post by:
grunerite
on
February 02, 2006, 01:36:47 am
Hello,
WinXP
Rev 1893 nightly build
This has probably been answered, but I couldn't find a post for it.
After building a project, I want to copy a few files, like I would in a Command window.
copy Dir\AnotherDir\File1.txt Dir\AnotherDir\File1_copy.txt
This doesn't work. I DO NOT want to create a *.bat and then run the batch file after I build, I just want a simple file copy.
Can I do this in Commands?
Thanks.
Title:
Re: post-build steps under "Commands"
Post by:
nfz
on
February 02, 2006, 01:43:48 am
try this:
Code
cmd /c copy Dir\AnotherDir\File1.txt Dir\AnotherDir\File1_copy.txt
cmd /c opens a dos command shell
Title:
Re: post-build steps under "Commands"
Post by:
grunerite
on
February 02, 2006, 01:50:11 am
Quote from: nfz on February 02, 2006, 01:43:48 am
try this:
Perfect. Thanks very much.