Quantcast
Channel: The Official Scripting Guys Forum! forum
Viewing all articles
Browse latest Browse all 15028

batch to copy folders

$
0
0

Dears,

I want to create a batch file that copies a entire folder to another location. 

The batch im using right now ,only copies the files that are in the folder not the entire folder itself and. I  want to copy the entire folder

Here is the batch im using.

xcopy "D:\test1" "A:\Backup" /s /e

This batch copies the files in test1 and put them in the folder Backup.

i want to keep the structure

Could someone help me on this?

Many thanks,

Nico


Viewing all articles
Browse latest Browse all 15028

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>