eponymous
eponymous

Reputation: 2228

How to copy directories and their subdirectories by using a batch file?

I want to copy directories and their subdirectories from C: to D: with same name, but any of folders' name must not change.

Can you help me?

Thank you.

Upvotes: 0

Views: 3081

Answers (2)

Christoph Eberhardt
Christoph Eberhardt

Reputation: 450

xcopy might help you

xcopy /E c:\name d:\name

Upvotes: 0

Harshul Pandav
Harshul Pandav

Reputation: 1036

Use the following command in your batch file

XCOPY source [destination] /E

Upvotes: 2

Related Questions