V
V
varhin2017-12-19 20:23:32
PowerShell
varhin, 2017-12-19 20:23:32

Copying robocopy files?

Good afternoon,
Tell me how to do it, I want to use Robocopy to copy several folders (with all files and subdirectories) to another location.
Instead of writing like this:

robocopy D:\1 E:\1 /E
robocopy D:\2 E:\2 /E
robocopy D:\3 E:\3 /E

Can you please tell me how to write all this in one line? Do you need robocopy or can you use Powershell?
Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anatoly, 2018-02-01
@rbobot

It is possible with robocopy, it is possible with powershell.
If several folders are all that is in some directory, then you can run robocopy with the /mir key and it will make a mirror of the entire folder. If not, then there are three commands and there are also three in powershell.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question