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

Scripting - Copy a file after successful build

Started by AndiDog, May 28, 2008, 11:27:44 AM

Previous topic - Next topic

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 ??

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.
"We should forget about small efficiencies, say about 97% of the time: Premature quotation is the root of public humiliation."