| ABOUT COPY |
| Allows the user to copy one file from one source to another. |
| COPY SYNTAX |
| Copies one or more files to another location. COPY [/A | /B] source [/A | /B] [+ source [/A | /B] [+ ...]] [destination] [/A | /B]] [/V] [/Y | /-Y] source Specifies the file or files to be copied. /A Indicates an ASCII text file. /B Indicates a binary file. destination Specifies the directory and/or filename for the new file(s). /V Verifies that new files are written correctly. /Y Suppresses prompting to confirm you want to overwrite an existing destination file. /-Y Causes prompting to confirm you want to overwrite an existing destination file. The switch /Y may be preset in the COPYCMD environment variable. This may be overridden with /-Y on the command line. To append files, specify a single file for destination, but multiple files for source (using wildcards or file1+file2+file3 format). |
| EXAMPLES |
| copy *.* a: = This would copy all files in the directory currently in to the floppy disk in drive a: copy autoexec.bat c:\windows = This would take the autoexec.bat usually found at root and copy it into the windows directory. The autoexec.bat can be substituted for any file(s). copy win.ini c:\windows /y = This would copy the win.ini file which is already in your windows directory to the windows directory without prompting if you wanted to overwrite the file or not. |