home *** CD-ROM | disk | FTP | other *** search
/ The World of Computer Software / World_Of_Computer_Software-02-387-Vol-3of3.iso / d / dlcpmv23.zoo / cpmv.doc < prev    next >
Text File  |  1992-04-04  |  2KB  |  48 lines

  1. DL_CPMV v2.3 92/03/30 by Dennis Lo (Dennis_Lo@mindlink.bc.ca)
  2.  
  3. DESCRIPTION:
  4.     'cp' is a BSD Unix-style file copying utility for MS-DOS.  
  5.     'mv' is a BSD Unix-style file moving utility for MS-DOS.  
  6.  
  7.     How are these utilities different from the many other 'cp' and 'mv' 
  8.     utilities for MS-DOS?
  9.         - both have the -p (preserve timestamp) and -v (verbose) options
  10.           found in BSD Unix/SunOS.
  11.         - both support environment variable references in file names.
  12.         - both allow forward slashes to be used in path names.
  13.         - mv can move files across drives.
  14.         - mv can rename directories as well as files.
  15.  
  16. USAGE:
  17.     cp  [-fipnvq] file dest_file
  18.         cp  [-fipnvq] file1 [file2...fileN] dest_directory
  19.     mv  [-fipnvq] file dest_file
  20.         mv  [-fipnvq] file1 [file2...fileN] dest_directory
  21.  
  22.        -f = Force overwrites without prompting (default).
  23.        -i = Interactively prompt before overwriting (opposite of -f).
  24.        -p = Preserve original timestamp when copying.
  25.        -n = use New timestamp when copying (opposite of -p). (default)
  26.        -v = Verbose - show each file copied.
  27.        -q = Quiet - opposite of -v (default).
  28.        -r = Recursively descend & copy/move sub-directories.
  29.  
  30.     Default arguments can be put in the CP environment variable. 
  31.         eg. 'set CP=ipv'
  32.     File names can contain environment variable references 
  33.         eg. 'set work=/usr/dennis/work'
  34.             'cp $work/*.c /junk'
  35.             'mv -R $work a:'
  36.  
  37. TO COMPILE:
  38.     The same source file contains both MV and CP.  To compile, copy
  39.     cpmv.c to either cp.c or mv.c and #define either CP or MV in the
  40.     new file.  Compile with Turbo C using the small memory model:
  41.         eg.    tcc cp.c     or     
  42.             tcc mv.c
  43.  
  44. DISTRIBUTION:
  45.     This program and its source code are in the public domain.
  46.     Munge at will, but please use a name other than 'dlcpmv' when 
  47.     releasing munged versions.
  48.