User forums > Using Code::Blocks

Pre/Post build steps

(1/1)

spintz:
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.

--- End quote ---

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

Der Meister:
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. :)

Navigation

[0] Message Index

Go to full version