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

后端 未结 5 1560
孤城傲影
孤城傲影 2021-01-30 02:24

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, no

5条回答
  •  天命终不由人
    2021-01-30 02:59

    Use robocopy. Robocopy is shipped by default on Windows Vista and newer, and is considered the replacement for xcopy. (xcopy has some significant limitations, including the fact that it can't handle paths longer than 256 characters, even if the filesystem can).

    robocopy c:\ d:\ /e /zb /copyall /purge /dcopy:dat
    

    Note that using /purge on the root directory of the volume will cause Robocopy to apply the requested operation on files inside the System Volume Information directory. Run robocopy /? for help. Also note that you probably want to open the command prompt as an administrator to be able to copy system files. To speed things up, use /b instead of /zb.

提交回复
热议问题