News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Pre/Post build steps

Started by spintz, March 02, 2007, 08:35:06 PM

Previous topic - Next topic

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.

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. :)
Real Programmers don't comment their code. If it was hard to write, it should be hard to understand.
Real Programmers don't write in BASIC. Actually, no programmers write in BASIC, after the age of 12.