Page 1 of 1

backupto 2 files

Posted: 12 Aug 2011 19:18
by swan_x
i have 2 files....555.txt & 666.txt; i want backupto 2 files stored in C: in D:

this script work fine:

backupto "D:\", "C:\555.txt", 2

but copy only one file....

with backupto "D:\", "C:\*.txt", 2 don't copy nothing!!

with backupto "D:\", "C:\*.*", 2 don't copy nothing!!

where is my error???

Re: backupto 2 files

Posted: 12 Aug 2011 19:24
by swan_x
....or backupto all files in folder....

Re: backupto 2 files

Posted: 12 Aug 2011 19:52
by zer0
Dude, please chill out and stop creating new threads and double-posting, ok?

Re: backupto 2 files

Posted: 12 Aug 2011 19:53
by highend
You didn't read the helpfile...
In the case of copyto and moveto, the source(s) may contain wildcards, for example:

copyto "D:\Backup\XY files\<date yyyy-mm-dd>", "<xydata>\*.ini|<xydata>\*.dat"

Copies all *.ini and *dat file from the XYplorer data path to D:\Backup\XY files\2008-04-22\ (if that's the date today).

Note that backupto, however, does not support wildcards!

Re: backupto 2 files

Posted: 13 Aug 2011 11:34
by swan_x
@ zer0
ok sorry! but no one gives me an answer!!!

@ highend

no! no! no!
please read my reply here
http://www.xyplorer.com/xyfc/viewtopic.php?f=3&t=6876

Re: backupto 2 files

Posted: 13 Aug 2011 11:41
by highend
Yes, yes, yes *sigh*

Code: Select all

Note that backupto, however, does not support wildcards!
so

Code: Select all

backupto "D:\", "C:\*.txt", 2
won't copy anything BECAUSE BACKUPTO DOES NOT SUPPORT WILDCARDS.

Re: backupto 2 files

Posted: 13 Aug 2011 11:53
by swan_x
sooorrryyy!!

i dont understand....but wildcards is not this?? |
"<xydata>\*.ini|<xydata>\*.dat"

for including 2 different file ext???


Edit: Sorry, I was wrong. wildcards is *
ok! ;)

Re: backupto 2 files

Posted: 13 Aug 2011 11:54
by swan_x
ok! if you have understood, You can not post the correct script????

Re: backupto 2 files

Posted: 13 Aug 2011 12:04
by swan_x
if i write
copyto "D:\", "C:\*.txt", 2

i have one copy C: folder in D: but in folder C: is empty!

Re: backupto 2 files

Posted: 13 Aug 2011 12:26
by swan_x
is incredible!
so many people here but no one answers to get a simple thing, copy 2 file with same ext from from one folder to another!

Re: backupto 2 files

Posted: 13 Aug 2011 13:44
by highend
Because it's so simple that you can do it yourself. Everything that's needed is in the helpfile!

Code: Select all

backupto location, [source], [on_collision], [preserve_dates], [create_log], [pop_stats], [skip_junctions], [verify], [show_progress]

and later on, what can be used for multiple files?

Code: Select all

You can also use multiple sources by using pipe ( | ) as separator, for example:

backupto "D:\Backup\XY folders\<date yyyy-mm-dd>", "<xydata>\Scripts|<xydata>\FindTemplates"

So what's so hard that you can't fill in a few parameters that are all explained there?

Code: Select all

backupto "D:\", "C:\555.txt|C:\666.txt", 2;

Re: backupto 2 files

Posted: 13 Aug 2011 19:10
by swan_x
oh great friend!!!
your answer is very welcome!!
I read the guide several times but I did not understand this!!
thank you very much!!