Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
693 views
in Technique[技术] by (71.8m points)

windows - copying all contents of folder to another folder using batch file?

I have a folder in C:Folder1

I want to copy all the contents of Folder1 to another location, D:Folder2

How do I do this using a batch file?

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

xcopy.exe is the solution here. It's built into Windows.

xcopy /s c:Folder1 d:Folder2

You can find more options at http://www.computerhope.com/xcopyhlp.htm


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...