Author Topic: Pre/Post build steps  (Read 2774 times)

spintz

  • Guest
Pre/Post build steps
« 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
« Last Edit: March 02, 2007, 08:41:33 pm by spintz »

Offline Der Meister

  • Regular
  • ***
  • Posts: 307
Re: Pre/Post build steps
« Reply #1 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. :)
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.