backupto 2 files

Discuss and share scripts and script files...
Post Reply
swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

backupto 2 files

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

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post by swan_x »

....or backupto all files in folder....

zer0
Posts: 2676
Joined: 19 Jan 2009 20:11

Re: backupto 2 files

Post by zer0 »

Dude, please chill out and stop creating new threads and double-posting, ok?
Reporting a bug? Have a wish? Got a question? Use search - View roadmap - FAQs: Forum + XY site
Windows 7/10
Always using the latest stable two-decimal build

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: backupto 2 files

Post 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!
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post 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

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: backupto 2 files

Post 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.
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post 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! ;)
Last edited by swan_x on 13 Aug 2011 12:35, edited 1 time in total.

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post by swan_x »

ok! if you have understood, You can not post the correct script????

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post 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!

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post 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!

highend
Posts: 14940
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: backupto 2 files

Post 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;
One of my scripts helped you out? Please donate via Paypal

swan_x
Posts: 335
Joined: 08 Oct 2009 12:27

Re: backupto 2 files

Post 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!!

Post Reply