How to use copyto to copy files from one directory to another?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
zBernie
Posts: 179
Joined: 08 Dec 2016 17:20

How to use copyto to copy files from one directory to another?

Post by zBernie »

I'm trying to use copyto to copy all of my XYplorer data files to a backup directory. The example below doesn't work. I want to do this without having to select the files first. Am I getting close?

copyto "C:\Users\bernie\AppData\Roaming\XYplorer", "C:\Users\bernie\Desktop\XYplorer";

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

Re: How to use copyto to copy files from one directory to another?

Post by highend »

But you know that you've used
copyto [source], [location]...

instead of
copyto [location], [source]...
?
One of my scripts helped you out? Please donate via Paypal

jupe
Posts: 2794
Joined: 20 Oct 2017 21:14
Location: Win10 22H2 120dpi

Re: How to use copyto to copy files from one directory to another?

Post by jupe »

I think you just have the paths the wrong way round.

copyto [location], [source],

Code: Select all

copyto "C:\Users\bernie\Desktop\XYplorer", "C:\Users\bernie\AppData\Roaming\XYplorer";

RalphM
Posts: 1935
Joined: 27 Jan 2005 23:38
Location: Cairns, Australia

Re: How to use copyto to copy files from one directory to another?

Post by RalphM »

I use a script like this to create backups of XY:

Code: Select all

copyto "<path to backup location>\XYplorer v<xyver> (on <date yyyy-mm-dd>)", "<xypath>|<xydata>", , , 2"";
which then creates the following folder (example) with all the necessary data in it to restore your current XY environment:
D:\Daten\Backup\XYplorer\XYplorer v18.90.0125 (on 2018-05-11)
(with D:\Daten\Backup\XYplorer being my <path to backup location> in the command above)
Ralph :)
(OS: W11 22H2 Home x64 - XY: Current beta - Office 2019 32-bit - Display: 1920x1080 @ 125%)

zBernie
Posts: 179
Joined: 08 Dec 2016 17:20

Re: How to use copyto to copy files from one directory to another?

Post by zBernie »

RalphM wrote:I use a script like this to create backups of XY:

Code: Select all

copyto "<path to backup location>\XYplorer v<xyver> (on <date yyyy-mm-dd>)", "<xypath>|<xydata>", , , 2"";
which then creates the following folder (example) with all the necessary data in it to restore your current XY environment:
D:\Daten\Backup\XYplorer\XYplorer v18.90.0125 (on 2018-05-11)
(with D:\Daten\Backup\XYplorer being my <path to backup location> in the command above)
Thank you.

Post Reply