home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / UTILITY / SYSTEM / DSKUTL11.ZIP / CP.MAN < prev    next >
Encoding:
Text File  |  1991-06-29  |  3.4 KB  |  133 lines

  1.      cp (local)               Disk Utilities v1.1                cp (local)
  2.  
  3. NNAAMMEE 
  4.           cp -  This  program  is  used  to  copy  files.  It supports
  5.      recursion and copying files to multiple floppies.  
  6.  
  7.  
  8. SSYYNNOOPPSSIISS 
  9.           cp [-abdmnprsu] [pattern ...] <file> [file ...] <dest> 
  10.  
  11.  
  12. EENNVVIIRROONNMMEENNTTSS 
  13.  
  14.           Options  for  this  program  will  also  be  looked  for  in
  15.      command.com's environment.    This  is  done with the set command
  16.      (e.g. set cp=n causes cp to always use the option n).  
  17.  
  18.  
  19. OOPPTTIIOONNSS 
  20.  
  21.      a - copy all files (includes hidden) 
  22.  
  23.      b - Only copy the file if it's archive bit is set.  
  24.  
  25.      d - don't copy date of file,  replace  all  dates  with  current.
  26.      This also makes the copy a little faster.  
  27.  
  28.      m -  media,  if  out  of  disk space, ask for other floppy.  When
  29.      there is no room left on the floppy  the  program  will  ask  for
  30.      another disk.     When the new disk is inserted, cp will make all
  31.      the necesary directories and continue copying.    Files  are  not
  32.      split  up  between  disks,  thus  this option is very limited for
  33.      backing up.  
  34.  
  35.      n - no overwrite, if file exists don't copy.    Any  files  which
  36.      already exist will be skipped and not copied.  
  37.  
  38.      p  -  pattern,  copy  only  files matching the specified pattern.
  39.      Multiple patterns can be specified with multiple p options   (for
  40.      example  "-ppp  *.c  *.h  *.bat" would copy all *.c *.h and *.bat
  41.      files).  
  42.  
  43.      r - recursive copy (copy all subdirectories and subfiles).   This
  44.      allows  whole  directory  structures  to  be copied with a single
  45.      command.  For example : cp -r a:\*.* b:\ will copy everything  on
  46.      the a drive to the b drive.  
  47.  
  48.     s -  skip  any  files  matching  specified pattern.  Multiple skip
  49.      options can be included also, such as "-sss *.obj *.exe *.map" 
  50.  
  51.      u - update.  This causes copy to see  if  the  source  file  also
  52.      exists  as the target.  If this is the case, the source file will 
  53.      only  be  copied    if  it  is more recent (i.e. has a newer date
  54.      stamp).  This can greatly  increase the speed of simple one  disk
  55.      backups.  
  56.  
  57.  
  58. EEXXAAMMPPLLEESS 
  59.  
  60.           cp -r bin dos d: 
  61.      If  bin  and  dos are files they are copied to d, if not then the
  62.      directories  are  copied  along  with   everything   within   the
  63.      directories.  
  64.  
  65.                                       -1-
  66.  
  67.      cp (local)               Disk Utilities v1.1                cp (local)
  68.  
  69.           cp -n *.* d:\bin\foo 
  70.      Copies  everything  to  d:\bin\foo except for files which already
  71.      exist in d:\bin\foo 
  72.  
  73.           cp -adm *.com b: 
  74.      Copies every file (including hidden) ending  in  .com  to  the  b
  75.      drive.  If there is no room left on the b drive, the user will be 
  76.      asked for another disk.  
  77.  
  78.           cp -russ *.exe *.obj *.* a: 
  79.      Copies  all  files and directories except the .exe and obj files.
  80.      This can be very handy for quick backups.  
  81.  
  82.           cp -rupps *.c *.h a*.* diskutil a: 
  83.      Copies all files ending with .c and .h but not starting with a to 
  84.      the A drive.  
  85.  
  86.  
  87. BBUUGGSS 
  88.  
  89.           None I know of!  
  90.  
  91.  
  92.  
  93.  
  94.  
  95.  
  96.  
  97.  
  98.  
  99.  
  100.  
  101.  
  102.  
  103.  
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116.  
  117.  
  118.  
  119.  
  120.  
  121.  
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129.  
  130.  
  131.                                       -2-
  132. !
  133.