Using XCOPY to copy contents of folders - /E
When creating a batch file to copy the entire contents of a folder to a new location with the Windows command XCOPY, add in the operator /E at the end of the script.
![](https://static.wixstatic.com/media/af7fa4_a607106261c2435dad40ae87f2755860~mv2.png/v1/fill/w_110,h_35,al_c,q_85,usm_0.66_1.00_0.01,blur_2,enc_auto/af7fa4_a607106261c2435dad40ae87f2755860~mv2.png)
This script will copy all of the subfolders, and their contents, at the first listed path, to the second path.