User forums > Using Code::Blocks
Scripting - Copy a file after successful build
(1/1)
AndiDog:
Hi,
I searched the forum/wiki but didn't find an answer.
What I want to do is writing a script that copies my output DLL file to "C:\windows\system32". But I couldn't find any Squirrel script examples that have a function which is executed after a successful build (like "function SearchHelp(keyword)" for help plugins).
Where is the documentation about scripting in C::B ??
Jan van den Borst:
Try typing this in the post build steps:
[[IO.CopyFile(_("bin\\debug\\mydll.dll"), _("c:\\windows\\system32\\mydll.dll"), true);]]
Jan
dje:
--- Quote from: AndiDog on May 28, 2008, 11:27:44 am ---Where is the documentation about scripting in C::B ??
--- End quote ---
Don't forget to look at the wiki, you'll find articles like this
Dje
thomas:
You can do that without scripting as a post-build step using the COPY command, as in a DOS shell.
Navigation
[0] Message Index
Go to full version