Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: spintz on March 02, 2007, 08:35:06 pm

Title: Pre/Post build steps
Post by: spintz on March 02, 2007, 08:35:06 pm
I'm trying to do a simple copy command for a Post-build step and I keep getting this error -

Quote
Running target post-build steps
copy .\Debug\IrrSpintz.dll C:\WINDOWS\system32\
Execution of 'copy .\Debug\IrrSpintz.dll C:\WINDOWS\system32\' in 'C:\IrrSpintz\source' failed.

Any help please?

EDIT
Well, I guessed that because copy is a special "dos" command, you need to execute it from a cmd prompt, so I prepended - 'cmd /C ' to all of my commands and they worked.  It'd be nice to not have to do that. :D
Title: Re: Pre/Post build steps
Post by: Der Meister on March 02, 2007, 08:37:58 pm
Does the source file exist? Is the path to it correct? Do you (your running Code::Blocks process) have the permission to write to the target directory?

Edit: Well, solved without my comment. :)