Saturday, September 22

Copying files

COPY
The copy command copies files between diskettes, hard disks and other devices.
Syntax
COPY [drive1:] [path1] file1.ext [drive2:] [path2] file 2.ext[/A] [/B] [/V]
drive1:    : source drive
drive2:    : destination drive
Path 1     : source file path where you have your file(s)
fiel1.ext   : source file name (s)
drive2:     : destination drive
Path2      :  destination path
file2.ext   : destination file name(s)
/A           : copy files in ASCII format
/B           : copy file in Binary format
/V           : compare the copy to source file.
  • COPY command can copy files from one directory to another on the same disk or hard disk. 
  • You can merge (combine) two or more text files into one single file.
Example 1
C:\>COPY CLASSIX CLASS9 (press enter key)
This commnd copies the contents of the file CLASSIX to the file CLASS9. In the same current directory (i.e.C:\>)
Example 2
C:\.>COPY C:\CLASSIX A: (press enter key)
It copies the CLASSIX file of drive C to drive A:
Example 3
C:\>COPY A:*COMB: (press enter key)
It copies files from drive A: to dive B:having extension .COM
Example 4
C:\>COPY B:\*.*C: (press enter key)
It copies all the files from drive B: to drive C:
  


No comments:

Post a Comment