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";
How to use copyto to copy files from one directory to another?
-
zBernie
- Posts: 181
- Joined: 08 Dec 2016 17:20
-
highend
- Posts: 15004
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: How to use copyto to copy files from one directory to another?
But you know that you've used
copyto [source], [location]...
instead of
copyto [location], [source]...
?
copyto [source], [location]...
instead of
copyto [location], [source]...
?
One of my scripts helped you out? Please donate via Paypal
-
jupe
- Posts: 3479
- Joined: 20 Oct 2017 21:14
- Location: Win10 22H2 120dpi
Re: How to use copyto to copy files from one directory to another?
I think you just have the paths the wrong way round.
copyto [location], [source],
copyto [location], [source],
Code: Select all
copyto "C:\Users\bernie\Desktop\XYplorer", "C:\Users\bernie\AppData\Roaming\XYplorer";-
RalphM
- Posts: 2122
- Joined: 27 Jan 2005 23:38
- Location: Cairns, Australia
Re: How to use copyto to copy files from one directory to another?
I use a script like this to create backups of XY:
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)
Code: Select all
copyto "<path to backup location>\XYplorer v<xyver> (on <date yyyy-mm-dd>)", "<xypath>|<xydata>", , , 2"";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 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
(OS: W11 25H2 Home x64 - XY: Current x64 beta - Office 2024 64-bit - Display: 1920x1080 @ 125%)
-
zBernie
- Posts: 181
- Joined: 08 Dec 2016 17:20
Re: How to use copyto to copy files from one directory to another?
Thank you.RalphM wrote:I use a script like this to create backups of XY:
which then creates the following folder (example) with all the necessary data in it to restore your current XY environment:Code: Select all
copyto "<path to backup location>\XYplorer v<xyver> (on <date yyyy-mm-dd>)", "<xypath>|<xydata>", , , 2"";
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)
XYplorer Beta Club