Batch file to copy directories recursively

前端 未结 4 1702
情书的邮戳
情书的邮戳 2020-12-01 00:40

Is there a way to copy directories recursively inside a .bat file? If so, an example would be great. thanks.

4条回答
  •  -上瘾入骨i
    2020-12-01 00:54

    Look into xcopy, which will recursively copy files and subdirectories.

    There are examples, 2/3 down the page. Of particular use is:

    To copy all the files and subdirectories (including any empty subdirectories) from drive A to drive B, type:

    xcopy a: b: /s /e

提交回复
热议问题