home *** CD-ROM | disk | FTP | other *** search
/ Chip 2004 July / CMCD0704.ISO / Software / Complet / FreeDOS / fdbootcd.iso / FREEDOS / PACKAGES / BASE / DISK05 / REPLACEX.ZIP / HELP / REPLACE.EN
Encoding:
Text File  |  2001-03-30  |  3.1 KB  |  84 lines

  1. FreeDOS REPLACE command
  2. -----------------------
  3. Replaces files in the destination directory with files from the source
  4. directory that have the same name.
  5.  
  6. REPLACE [drive1:][path1]filename [drive2:][path2] [/switches]
  7.  
  8.   [drive1:][path1]filename    Specifies the source file or files.
  9.   [drive2:][path2]            Specifies the directory where files are to be
  10.                               replaced.
  11.   /A    Adds new files to destination directory. Cannot use with /S or /U
  12.         switches.
  13.   /H    Adds or replaces hidden and system files as well as unprotected files.
  14.   /N    Preview mode - does not add or replace any file.
  15.   /P    Prompts for confirmation before replacing a file or adding a source
  16.         file.
  17.   /R    Replaces read-only files as well as unprotected files.
  18.   /S    Replaces files in all subdirectories of the destination directory.
  19.         Cannot use with the /A switch.
  20.   /W    Waits for you to insert a disk before beginning.
  21.   /U    Replaces (updates) only files that are older than source files. Cannot
  22.         use with the /A switch.
  23.  
  24.  
  25. Exit codes
  26. ----------
  27.  0   No error
  28.      REPLACE successfully replaced or added the files.
  29.  1   Function number invalid
  30.      The computer has a version of DOS that is incompatible with
  31.      REPLACE. (Not implemented at the moment!)
  32.  2   File not found
  33.      REPLACE could not find the source files.
  34.  3   Path not found
  35.      REPLACE could not find the source or destination path.
  36.  5   Access denied
  37.      The user does not have access to the source or destination files.
  38.  8   Insufficient memory
  39.      There is insufficient system memory to carry out the command.
  40.      (Not implemented because not possible to handle in a high level
  41.      language like C!)
  42. 11   Format invalid
  43.      The user used the wrong syntax on the command line.
  44. 29   Write fault
  45.      REPLACE could not write the destination files.
  46. 30   Read fault
  47.      REPLACE could not read the source files.
  48. 39   Insufficient disk space
  49.      There is insufficient disk space in the destination path.
  50.  
  51.  
  52. Compiling the source code
  53. -------------------------
  54. Compiling the source code is possible with the following compilers:
  55. - Borland C++ (tm) 3.0 or higher
  56. - Borland Turbo C++ (tm) 3.0 or higher
  57. - DJGPP 2.02 or higher
  58.  
  59. To compile with Borland C++ type "make -fmakefile.bc".
  60. To compile with Borland Turbo C++ type "make -fmakefile.tc".
  61.  
  62.  
  63. Contacting the author
  64. ---------------------
  65. e-mail address: rene.ableidinger@gmx.at
  66.  
  67.  
  68. Copyright
  69. ---------
  70. (C)opyright 2001 by Rene Ableidinger
  71.  
  72. This program is free software; you can redistribute it and/or modify it
  73. under the terms of the GNU General Public License version 2 as
  74. published by the Free Software Foundation.
  75.  
  76. This program is distributed in the hope that it will be useful, but
  77. WITHOUT ANY WARRANTY; without even the implied warranty of
  78. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  79. General Public License for more details.
  80.  
  81. You should have received a copy of the GNU General Public License along
  82. with this program; if not, write to the Free Software Foundation, Inc.,
  83. 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  84.