batch to copy files with xcopy

后端 未结 4 1568
青春惊慌失措
青春惊慌失措 2021-02-09 07:02

I have checked some examples on internet but I can\'t get my (first) batch file to work. I would like to copy automatically my file from a folder to another one but nothing happ

4条回答
  •  自闭症患者
    2021-02-09 07:37

    After testing most of the switches this worked for me:

    xcopy C:\folder1 C:\folder2\folder1 /t /e /i /y
    

    This will copy the folder folder1 into the folder folder2. So the directory tree would look like:

    C:
       Folder1
       Folder2
          Folder1
    

提交回复
热议问题