# batch-file File Handling in batch files How to Copy Files in Batch

## Example

You may want to copy files from one place to another. In this example we'll teach you.

You can use the command xcopy. The syntax is xcopy c:\From C:\To

Example:

@echo off

There are also switches you can use. If you want to view them open up command prompt by Start Menu -> Accessories -> Command Prompt and then type xcopy /?