Just use a notepad. The suffix is. Bat.
Then add it to the planned task and it will be ok.
Let me give you an example.
For example, the directory to be copied is a, and it should be copied to B.
@ Turn off echo
Copy A:\*. * B:\
Echo copy complete
Echo. & stop
Save these four lines of code as in Notepad. Bat, such as copy.bat
A:\ and B:\ Just switch to the directory you want.
Don't forget to plan the task after you finish it.