Page 1 of 1

Scripted copy from A to B

Posted: 21 Jun 2016 12:20
by MBaas
I'm trying to configure a toolbar-button that copies all files from a constant source-path ("H:\BAK-root") to a fix target ("H:\") . So I have entered the following command:

Code: Select all

copyas "*.*", "H:\" , "H:\BAK-root\";
But that creates subdirectories H:\.-01 (conseceutively numbered for every call) and copies the files into these dirs. What am I doing wrong?

Re: Scripted copy from A to B

Posted: 21 Jun 2016 16:37
by admin
No, copyas is not the right command here.

Do it like this:

Code: Select all

copyto "E:\Test\copy\To\", "E:\Test\copy\From\*";
In your case:

Code: Select all

copyto "H:\", "H:\BAK-root\*";

Re: Scripted copy from A to B

Posted: 21 Jun 2016 16:52
by MBaas
Ouch - well, that explains everything! How could I miss that? :oops:
Many thanks!

Re: Scripted copy from A to B

Posted: 21 Jun 2016 17:20
by admin
Well, frankly I needed some time to find this way. It's not that clearly shown in the help. :whistle: