batch-file How to Copy Files in Batch


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


@echo off
xcopy C:\Folder\text.txt C:\User\Username\Desktop

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 /?