Skip to content

Commit a52cb4b

Browse files
committed
version 1.9a
1 parent 4a7e438 commit a52cb4b

File tree

4 files changed

+104
-3
lines changed

4 files changed

+104
-3
lines changed

APPINFO/XCOPY.LSM

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Begin3
22
Title: XCopy
3-
Version: 1.9
4-
Entered-date: 2025-03-26
3+
Version: 1.9a
4+
Entered-date: 2025-04-07
55
Description: Copies files and directory trees
66
Keywords: freedos, copy, xcopy, kitten
77
Author: Rene Ableidinger <rene.ableidinger@gmx.at>

README

Lines changed: 98 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,98 @@
1+
FreeDOS XCOPY
2+
---------------------------------
3+
Copies files and directory trees.
4+
5+
XCOPY source [destination] [/switches]
6+
7+
source Specifies the directory and/or name of file(s) to copy.
8+
destination Specifies the location and/or name of new file(s).
9+
/A Copies only files with the archive attribute set and doesn't
10+
change the attribute.
11+
/C Continues copying even if errors occur.
12+
/D[:M/D/Y] Copies only files which have been changed on or after the
13+
specified date. When no date is specified, only files which are
14+
newer than existing destination files will be copied.
15+
/E Copies any subdirectories, even if empty.
16+
/F Display full source and destination name.
17+
/H Copies hidden and system files as well as unprotected files.
18+
/I If destination does not exist and copying more than one file,
19+
assume destination is a directory.
20+
/L List files without copying them. (simulates copying)
21+
/M Copies only files with the archive attribute set and turns off
22+
the archive attribute of the source files after copying them.
23+
/N Suppresses prompting to confirm you want to overwrite an
24+
existing destination file and skips these files.
25+
/P Prompts for confirmation before creating each destination file.
26+
/Q Quiet mode, don't show copied filenames.
27+
/R Overwrite read-only files as well as unprotected files.
28+
/S Copies directories and subdirectories except empty ones.
29+
/T Creates directory tree without copying files. Empty directories
30+
will not be copied. To copy them add switch /E.
31+
/V Verifies each new file.
32+
/W Waits for a keypress before beginning.
33+
/Y Suppresses prompting to confirm you want to overwrite an
34+
existing destination file and overwrites these files.
35+
/-Y Causes prompting to confirm you want to overwrite an existing
36+
destination file.
37+
38+
The switch /Y or /N may be preset in the COPYCMD environment variable.
39+
This may be overridden with /-Y on the command line.
40+
41+
42+
Exit codes
43+
----------
44+
0 No error
45+
XCOPY successfully copied the files.
46+
1 File not found
47+
XCOPY could not find the source file(s).
48+
4 Path not found
49+
XCOPY could not find the source or destination path.
50+
Format invalid
51+
The user used the wrong syntax on the command line.
52+
5 Access denied
53+
The user does not have access to the source or destination files.
54+
8 Insufficient memory
55+
There is insufficient system memory to carry out the command.
56+
(Not implemented because not possible to handle in a high level
57+
language like C!)
58+
29 Write fault
59+
XCOPY could not write a destination file or directory.
60+
30 Read fault
61+
XCOPY could not read a source file.
62+
39 Insufficient disk space
63+
There is insufficient disk space in the destination path.
64+
65+
66+
Compiling the source code
67+
-------------------------
68+
Compiling the source code is possible with the following compilers:
69+
- Borland C++ (tm) 3.0 or higher
70+
- Borland Turbo C++ (tm) 3.0 or higher
71+
Version 1.2 and newer can also be compiled with the now freeware
72+
- Borland Turbo C 2.01 compiler :-)
73+
Version 1.5 and newer
74+
- Open Watcom C/C++ 1.9/2.0pre (includes portions of tcc2wat)
75+
76+
Reporting bugs and questions
77+
----------------------------
78+
Please email FreeDOS mailing list for questions and comments
79+
Or create an issue on GitHub at https://github.com/FDOS/xcopy or
80+
fill a bug report on FreeDOS home at https://www.freedos.org/bugs/
81+
82+
Copyright
83+
---------
84+
(C)opyright 2001 by Rene Ableidinger
85+
(with patches 2005: Eric Auer
86+
87+
This program is free software; you can redistribute it and/or modify it
88+
under the terms of the GNU General Public License version 2 as
89+
published by the Free Software Foundation.
90+
91+
This program is distributed in the hope that it will be useful, but
92+
WITHOUT ANY WARRANTY; without even the implied warranty of
93+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
94+
General Public License for more details.
95+
96+
You should have received a copy of the GNU General Public License along
97+
with this program; if not, write to the Free Software Foundation, Inc.,
98+
51 Franklin St, Fifth Floor, Boston, MA 02110, USA

doc/history.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,3 +61,6 @@ version 1.9 (2025-03-26)
6161
------------------------
6262
- bugfix - better check for free space for > 2GB files, use FAT32 enabled API if available
6363

64+
version 1.9a (2025-04-07)
65+
-------------------------
66+
- bugfix - fix free space check to succeed on EDR based DOS kernels

source/xcopy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ int main(int argc, const char **argv) {
403403
/* SUB-PROGRAMS */
404404
/*-------------------------------------------------------------------------*/
405405
void print_help(void) {
406-
printf("XCOPY v1.9 - Copyright 2001-2003 by Rene Ableidinger (patches 2005: Eric Auer)\n");
406+
printf("XCOPY v1.9a - Copyright 2001-2003 by Rene Ableidinger (patches 2005: Eric Auer)\n");
407407
/* VERSION! */
408408
printf("%s\n\n", catgets(cat, 2, 1, "Copies files and directory trees."));
409409
printf("%s\n\n", catgets(cat, 2, 2, "XCOPY source [destination] [/switches]"));

0 commit comments

Comments
 (0)