Search code examples
filefilesystemsbackupdoscopy-paste

copy all files and folders from one drive to another drive using DOS (command prompt)


i want to copy all files and folders from one drive to another drive using MS-DOS. How to do it?

I am trying xcopy I:\*.* N:\ But it copies only files, not folders. So how to copy all files and folders both?

Thanks.


Solution

  • Use xcopy /s I:\*.* N:\

    This is should do.