中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-15 20:38
47,813 topics / 349,903 posts / today 1 new / 48,258 members
DOS疑难解答 & 问题讨论 (解答室) » How to copy a folder using the XCOPY command in pure DOS?
Printable Version  3,854 / 6
Floor1 shjslq Posted 2003-06-01 00:00
初级用户 Posts 3 Credits 108
Is there a hidden file in this folder? Which parameters need to be used? I tried it and it didn't work! I would like to ask if anyone knows? Thank you!
Floor2 hunome Posted 2003-06-01 00:00
银牌会员 Posts 721 Credits 2,265
Try xxcopy.
Floor3 wglwx Posted 2003-06-02 00:00
高级用户 Posts 187 Credits 616
New Features of XCOPY in DOS 7.0

Windows 95 provides users accustomed to DOS commands with the powerful MS-DOS 7.0. In addition to being compatible with lower versions of DOS, MS-DOS 7.0 enhances the functions of many internal and external commands and device drivers, making it more convenient to use.

MS-DOS 7.0 expands the functions of XCOPY, making it automatically call XCOPY32.EXE internally and becoming a real 32-bit application. And 11 new optional parameters are newly expanded, which are respectively:

/C: Even if disk read-write errors occur during the copying process, continue copying. Mainly applicable to copying files from a floppy disk (especially a problematic floppy disk) to a hard disk.

/I: When there is more than one specified source file and the target path (file) does not exist, assume that the target is a directory. If this option is not carried, the user determines whether the target is a file or a directory.

/Q: Copy without displaying the file name (fast copy).

/F: Display the complete source file name and target file name (including path) during copying.

/L: Simulate copying, only display all file names to be copied, but do not perform copying.

/H: Copy all files (including hidden files and system files) in the specified source file (directory).

/R: Automatically overwrite read-only files.

/T: Only copy subdirectories but not files, but do not include empty directories without files under the source directory. Otherwise, the /E option should be specified.

/U: Update existing files.

/K: When copying files, keep the target file attributes unchanged. When this option is not carried, the read-only attribute will be reset.

/N: Use the short file name (8.3 format, that is, 8 characters for the main file name and 3 characters for the extension) for copying, which is used to copy files to an operating system that does not support long file names (such as lower versions of DOS).
Floor4 yiyesong Posted 2003-06-04 00:00
元老会员 Posts 632 Credits 1,987
In fact, the most important thing when using DOS is to practice more. No one can remember all DOS commands. You can see their common usages by using HELP or /?. For example, XCOPY /?, which is a common method under DOS.
Floor5 xierwa Posted 2003-06-08 00:00
初级用户 Posts 15 Credits 175 From 福建
Makes a lot of sense!!!
Floor6 wj Posted 2003-06-09 00:00
初级用户 Posts 3 Credits 109
The following is a quote from yiyesong on 2003-6-4 4:08:26:
Actually, the most important thing when using DOS is to do more hands-on. No one can remember all DOS commands. You can see their common usages by using HELP or /?. For example, XCOPY /?, which is a common method under DOS.

Thank you, learned another trick
Floor7 x123 Posted 2003-06-11 00:00
初级用户 Posts 9 Credits 139
Under pure DOS, MS-DOS 6.22 XCOPY.EXE cannot copy hidden files and system files. You need to first change the hidden files and system files to be copied, such as AUTOEXEC.BAT and IO.sys, to non-hidden and non-system files before copying. And xcopy32 is for Windows and cannot work normally under pure DOS.

Set attributes

ATTRIB
]

+ Set attribute.
- Clear attribute.
R Read-only file attribute.
A Archive file attribute.
S System file attribute.
H Hidden file attribute.
Specify one or more files for attrib to process.
/S Process the current folder and all subfolders with matching files.
/D Process folders as well.
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023