User forums > Using Code::Blocks
Problems with 'Post-build step' command
ironhead:
I'm trying to add a post build command to copy the .manifest file from the current directory to my 'bin' directory. When running the build, I get:
Running project post-build steps
copy myApp.exe.manifest ..\bin
Execution of 'copy myApp.exe.manifest ..\bin' in 'D:\Source\myApp' failed.
Anybody have any ideas?
thomas:
The application is probably still running (not terminated properly) so the file is still exclusively locked.
ironhead:
I'd agree with that, except 'myApp.exe' is built as part of the build (i.e. it's not executed) and the '.manifest' should be fine regardless. If I run the command from cmd prompt right after the build process, it runs cleanly.
I should point out I'm using the latest nightly build.
Thanx!
thomas:
Have you checked the trivial stuff (i.e. that the paths are correct)?
You attempt to copy
D:\Source\myApp\myApp.exe.manifest
to
D:\Source\bin
Is D:\Source\bin really your bin directory?
EDIT:
If it is not something trivial, then I recommend you go to www.sysinternals.com and get the filemon utility. With this, you can track all file/directory operations that Code::Blocks is attempting.
Run it and watch for a line that says "FAILED", then you know where the beef is.
mandrav:
'copy' is a builtin command. To use builtins, start your command with 'cmd /c', e.g.
cmd /c copy myApp.exe.manifest ..\bin
Navigation
[0] Message Index
[#] Next page
Go to full version