Windows

copy

CautionCopy a file

copy <src> <dest>

Copies a single file; use xcopy/robocopy for folders or many files.

Examples

  • copy report.txt D:\backup\Copy into backup

Syntax

copy <src> <dest>

Before you run it

May overwrite a file with the same name.

Related commands

The same reference, with no signal at all

Every command on this site, held on your device. The app adds 632 more: 1,510 commands and 120 fix flows, searchable with no connection. Free to install, no ads (some content is a one-time purchase).

Get it free on the App Store