Reputation: 2228
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
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