It is currently Tue Mar 09, 2021 9:44 am

All times are UTC + 1 hour




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: Tools: How to copy an executable after "Create executable"
PostPosted: Tue Dec 24, 2013 12:52 pm 
Offline
User
User

Joined: Tue Apr 27, 2010 4:35 pm
Posts: 19
Location: Germany
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


Top
 Profile  
Reply with quote  
 Post subject: Re: Tools: How to copy an executable after "Create executabl
PostPosted: Wed Dec 25, 2013 1:48 pm 
Offline
Addict
Addict
User avatar

Joined: Sat Apr 26, 2003 8:26 am
Posts: 2999
Location: Planet Earth
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:
/c copy "C:\test\myDLL.dll" "\\Testserver2\c$\test" /Y

'/c' means it executes the following command.

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


Top
 Profile  
Reply with quote  
 Post subject: Re: Tools: How to copy an executable after "Create executabl
PostPosted: Thu Dec 26, 2013 9:15 am 
Offline
User
User

Joined: Tue Apr 27, 2010 4:35 pm
Posts: 19
Location: Germany
thank you, it works!


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 1 hour


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  

 


Powered by phpBB © 2008 phpBB Group
subSilver+ theme by Canver Software, sponsor Sanal Modifiye