China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 23:40
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » How to copy a folder using the XCOPY command in pure DOS? View 3,804 Replies 6
Original Poster Posted 2003-06-01 00:00 ·  中国 上海 金山区 电信
初级用户
Credits 108
Posts 3
Joined 2003-06-01 00:00
23-year member
UID 2784
Gender Male
Status Offline
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!
Floor 2 Posted 2003-06-01 00:00 ·  中国 北京 科技网
银牌会员
★★★
颓废青年
Credits 2,265
Posts 721
Joined 2003-05-12 00:00
23-year member
UID 2032
Gender Male
Status Offline
Try xxcopy.
Floor 3 Posted 2003-06-02 00:00 ·  中国 江苏 无锡 电信
高级用户
★★
Credits 616
Posts 187
Joined 2003-04-18 00:00
23-year member
UID 1598
Gender Male
Status Offline
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).
Floor 4 Posted 2003-06-04 00:00 ·  中国 湖北 随州 电信
元老会员
★★★
Credits 1,987
Posts 632
Joined 2002-10-27 00:00
23-year member
UID 73
Gender Male
Status Offline
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.
http://dos.e-stone.cn/dosbbs
uploadImages/200311161145850422.swf
Floor 5 Posted 2003-06-08 00:00 ·  中国 福建 厦门 鹏博士宽带
初级用户
Credits 175
Posts 15
Joined 2003-06-07 00:00
23-year member
UID 4287
Gender Male
From 福建
Status Offline
Makes a lot of sense!!!
我是一个好人!!!
Floor 6 Posted 2003-06-09 00:00 ·  中国 广东 惠州 电信
初级用户
Credits 109
Posts 3
Joined 2003-06-09 00:00
23-year member
UID 4559
Gender Male
Status Offline
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
Floor 7 Posted 2003-06-11 00:00 ·  中国 台湾 中华电信
初级用户
Credits 139
Posts 9
Joined 2003-06-11 00:00
23-year member
UID 4842
Gender Male
Status Offline
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.
Forum Jump: