batch to copy files with xcopy

后端 未结 4 1560
青春惊慌失措
青春惊慌失措 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:40

    You must specify your file in the copy:

    xcopy C:\source\myfile.txt C:\target
    

    Or if you want to copy all txt files for example

    xcopy C:\source\*.txt C:\target
    

提交回复
热议问题