Page 1 of 1

xcopy: create a new directory same as the source directory

Posted: 28 Sep 2011 19:25
by tinfanide
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?