FreeDOS XCOPY command --------------------- Copies files and directory trees. XCOPY [drive1:][path1]filename [drive2:][path2][filename2] [/switches] [drive1:][path1]filename Specifies directory and name of file(s) to copy. [drive2:][path2][filename2] Specifies directory and/or name of new file(s). /A Copies only files with the archive attribute set and doesn't change the attribute. /D The destination specifies a directory. Cannot be used with the /F switch. /E Copies any subdirectories, even if empty. /F The destination specifies a file. Cannot be used with the /D switch. /H Copies hidden and system files as well as unprotected files. /M Copies only files with the archive attribute set and turns off the archive attribute. /N Suppresses prompting to confirm you want to overwrite an existing destination file and skips these files. /P Prompts for confirmation before creating each destination file. /Q Quiet mode, don't show copied filenames. /R Overwrite read-only files as well as unprotected files. /S Copies directories and subdirectories except empty ones. /V Verifies each new file. /W Waits for a keypress before beginning. /Y Suppresses prompting to confirm you want to overwrite an existing destination file and overwrites these files. /-Y Causes prompting to confirm you want to overwrite an existing destination file. The switch /Y or /N may be preset in the COPYCMD environment variable. This may be overridden with /-Y on the command line. Exit codes ---------- 0 No error XCOPY successfully copied the files. 1 File not found XCOPY could not find the source file(s). 4 Path not found XCOPY could not find the source or destination path. Format invalid The user used the wrong syntax on the command line. 5 Access denied The user does not have access to the source or destination files. 8 Insufficient memory There is insufficient system memory to carry out the command. (Not implemented because not possible to handle in a high level language like C!) 29 Write fault XCOPY could not write a destination file or directory. 30 Read fault XCOPY could not read a source file. 39 Insufficient disk space There is insufficient disk space in the destination path. Compiling the source code ------------------------- Compiling the source code is possible with the following compilers: - Borland C++ (tm) 3.0 or higher - Borland Turbo C++ (tm) 3.0 or higher Contacting the author --------------------- e-mail address: rene.ableidinger@gmx.at Copyright --------- (C)opyright 2001 by Rene Ableidinger This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2 as published by the Free Software Foundation. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.