eponymous
eponymous

Reputation: 2228

Moving directory across drives, using batch file

I want to move a folder and its subfiles from C:\ to D:\ by using batch file.

How can I do this?

Upvotes: 2

Views: 6216

Answers (1)

laurent
laurent

Reputation: 90776

I don't think there's a way to move folders across drives. This kind of "move" is simply a copy followed by a deletion. So you could do:

xcopy c:\example d:\example /S /E
rmdir /S c:\example

Upvotes: 4

Related Questions