copy
Windows CMD · Files · available in the simulator
What it does
Copies files to another folder. Wildcards: * and ?.
Syntax
copy [/y|/-y] [/a|/b] origen [+ origen2...] [destino]
Options and parameters
/ysuppresses prompting before overwriting
/-yprompts before overwriting
/vverifies the copy
/bbinary mode
/aASCII mode
/YSuppresses prompting to confirm overwriting destination files.
copy /y *.txt backup\/-YPrompts for confirmation before overwriting destination files.
/ATreats the file as ASCII text.
/BTreats the file as binary.
/DAllows the destination file to be created decrypted.
/VVerifies that files are written correctly.
/NUses 8.3 short file names when copying.
/ZCopies network files in restartable mode.
/LIf source is a symbolic link, copies the link instead of the target.
Usage examples
copy "c:\users\admin\desktop\mi foto.jpg" c:\tempcopy "c:\users\admin\desktop\mi foto.jpg" c:\temp\foto.jpgcopy c:\windows\system32\*.exe c:\users\admin\documentscopy con fichero.txtcopy a.txt+b.txt c.txtcopy archivo.txt copia.txtcopy /Y *.txt backup\copy /y *.txt backup\
Notes and common mistakes
- copy origen1+origen2 destino concatenates files.