Page 1 of 1
How to use copyto to copy files from one directory to another?
Posted: 11 May 2018 04:49
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";
Re: How to use copyto to copy files from one directory to another?
Posted: 11 May 2018 05:03
by highend
But you know that you've used
copyto [source], [location]...
instead of
copyto [location], [source]...
?
Re: How to use copyto to copy files from one directory to another?
Posted: 11 May 2018 05:03
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";
Re: How to use copyto to copy files from one directory to another?
Posted: 11 May 2018 05:14
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)
Re: How to use copyto to copy files from one directory to another?
Posted: 12 May 2018 03:40
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.