copy |
copy makes a complete copy of an existing file. If another file by the same name exists at destination , you will be asked if you want to overwrite it. Omit destination to copy the specified files to the current working directory. destination can also specify filenames, useful for renaming the files as they're being copied . copy accepts the following parameters and options:
copy source destination copy [/a /b] source [/a /b] [+ source [/a /b] [+ ...]] [ destination [/a /b]] [/v] [/y /-y] [/d] [/z]
Option | Description |
---|---|
/a | Specifies that the file to copy is in ASCII format |
/b | Specifies that the file to copy is a binary file |
/v | Verifies that new files are written successfully by comparing them with the originals |
/y , /-y | Suppresses or enables prompting, respectively, to confirm replacing existing files |
/d | Allows the new file to be decrypted (NTFS volumes only) |
/z | Copies networked files in restartable mode |
+ | Concatenates (glues together) several source files |
copy c:\temp.txt d:\files\temp.txt copy d:\cdsample\images\*.* . copy words.txt d:\files\morewords.txt copy *.* d:\files