xcopy: create a new directory same as the source directory

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
tinfanide
Posts: 117
Joined: 05 Sep 2011 09:15

xcopy: create a new directory same as the source directory

#1 Post by tinfanide » 28 Sep 2011 19:25

Supposed a source directory is to be copied to a destination

Code: Select all

xcopy "c:\folder" "d:\"


But the computer does not create a destination folder called "folder"
I have to manually do this

Code: Select all

xcopy "c:\folder" "d:\folder"


Is there a parameter or something to do this?

Post Reply