I have a folder in C:Folder1
C:Folder1
I want to copy all the contents of Folder1 to another location, D:Folder2
Folder1
D:Folder2
How do I do this using a batch file?
xcopy.exe is the solution here. It's built into Windows.
xcopy.exe
xcopy /s c:Folder1 d:Folder2
You can find more options at http://www.computerhope.com/xcopyhlp.htm
2.1m questions
2.1m answers
60 comments
57.0k users