Page 1 of 1

Tools: How to copy an executable after "Create executable"

Posted: Tue Dec 24, 2013 12:52 pm
by spacewalker
Hello,

I try to add a tool that copies my .DLL to another PC after I execute "Create Executable"
(Basically the whole "tool" is a simple copy command)

I use "Tools" - "Configure tools" with the following settings:

command line :
copy "C:\test\myDLL.dll" "\\Testserver2\c$\test" /Y

Event to Trigger the Tool:
After Create Executable

If I run the commandline manually in a console it works.
But it doesn't work when I create a new executable of my DLL

So how would I copy my compiled .DLL to another PC using "Tools" ?
(I use PB 5.21 on Windows7)

thanks

Re: Tools: How to copy an executable after "Create executabl

Posted: Wed Dec 25, 2013 1:48 pm
by Danilo
I think 'copy' is a command within the command line interpreter 'cmd'.

Searching for "cmd command line switches" leads me to:
- Microsoft Windows XP - Cmd

So i think the command should be just "cmd" or "cmd.exe", and the argument should be

Code: Select all

/c copy "C:\test\myDLL.dll" "\\Testserver2\c$\test" /Y
'/c' means it executes the following command.

Test it with:

Code: Select all

RunProgram("cmd","/c copy "+#DQUOTE$+"C:\test\myDLL.dll"+#DQUOTE$+" "+#DQUOTE$+"\\Testserver2\c$\test"+#DQUOTE$+" /Y","")

Re: Tools: How to copy an executable after "Create executabl

Posted: Thu Dec 26, 2013 9:15 am
by spacewalker
thank you, it works!