Copying files using Windows CLI

Copying files or synchronising files can be easy from command line interface as much as using graphic interface in Windows. Key word is command xcopy which is in use for this purpose.

Just start CLI using cmd.exe from search box and type xcopy and the source of the file followed by destination location:

C:\>xcopy c:\Test1\test1.txt e:\Test1

If file is copied your PC will inform you with following:

1 File(s) copied

In case you already have file with same name on destination, meaning you want to synchronise files type same command but you will be prompt to confirm action:

Overwrite E:\Test1\Test1.txt (Yes/No/All)? Y
1 File(s) copied

Some additional switches can be added to this command, such as:

/W To prompt you to press key before copy file

/R To overwrite RO files

For additional information you can visit following link:

I already wrote about similar case by using Total Commander, so you can visit tutorial and do same thing by using this software:

I hope that this tutorial was informative to you I hope to hear from you soon.

Dejan Dzodan

Dejan Dzodan

IT professional for more then 15 years, mostly in financial institutions but with experience in ISP and retail. Proven in networking and overall infrastructure projects. Cisco instructor.

Leave a Reply

Your email address will not be published. Required fields are marked *

8 + 5 =