windows - Copying a folder in the command prompt -


i trying copy folder 1 directory in cmd in windows 7.

i have found commands copying individual files:

copy test.txt "c:\newlocation" 

which works fine. trying this:

copy "c:\test" "c:\newlocation"

doesn't work. wants take contents of directory , move them over. there anyway copy folder , move opposed entire directory contents?

thanks.

use xcopy instead of copy:

xcopy "c:\test" "c:\newlocation" /s /e 

source


Comments

Popular posts from this blog

c++ - Creating new partition disk winapi -

Android Prevent Bluetooth Pairing Dialog -

php - joomla get content in onBeforeCompileHead function -