Current location - Health Preservation Learning Network - Healthy weight loss - How to use windows to schedule tasks to copy multiple files in one directory to another directory regularly every day?
How to use windows to schedule tasks to copy multiple files in one directory to another directory regularly every day?
Create batch file

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.