copying all contents of folder to another folder using batch file?

后端 未结 12 1846
时光取名叫无心
时光取名叫无心 2020-12-12 19:49

I have a folder in C:\\Folder1

I want to copy all the contents of Folder1 to another location, D:\\Folder2

How do I do

12条回答
  •  北荒
    北荒 (楼主)
    2020-12-12 20:37

    @echo off
    :: variables
    echo Backing up file
    set /P source=Enter source folder:
    set /P destination=Enter Destination folder:
    set xcopy=xcopy /S/E/V/Q/F/H/I/N
    %xcopy% %source% %destination%
    echo files will be copy press enter to proceed
    pause
    

提交回复
热议问题