|
shjslq
初级用户
 
积分 108
发帖 3
注册 2003-6-1
状态 离线
|
『楼 主』:
在纯DOS下用XCOPY命令怎么复制文件夹?
使用 LLM 解释/回答一下
该文件夹中含有隐藏文件?需要用那些参数,我试过了没有成功!请教那位知道?谢谢!
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!
|
|
2003-6-1 00:00 |
|
|
hunome
银牌会员
     颓废青年
积分 2265
发帖 721
注册 2003-5-12
状态 离线
|
|
2003-6-1 00:00 |
|
|
wglwx
高级用户
   
积分 616
发帖 187
注册 2003-4-18
状态 离线
|
『第 3 楼』:
[转帖]DOS 7.0中XCOPY的新功能
使用 LLM 解释/回答一下
DOS 7.0中XCOPY的新功能
Windows 95为习惯于DOS命令的用户提供了功能强大的MS-DOS 7.0。MS-DOS 7.0除了兼容低版本的DOS外,还增强了许多内、外部命令和设备驱动程序的功能,使其使用起来更方便。
MS-DOS 7.0扩充了XCOPY的功能,使其内部自动调用XCOPY32.EXE,成为一个真正的32位应用程序,并且又新扩充了11个可选参数,它们分别是:
/C:即使拷贝过程中发生磁盘读写错,仍然继续进行拷贝。主要适用于从软盘(特别是有问题的软磁盘)向硬盘拷贝文件。
/I:当指定的源文件不止一个,同时目标路径(文件)又不存在时,假定目标为一目录。若不带此选项,则由用户确定目标是文件还是目录。
/Q:拷贝不显示文件名(快速拷贝)。
/F:拷贝时显示完整的源文件名和目标文件名(含路径)。
/L:模拟拷贝,公显示即将拷贝的所有文件名,而不进行拷贝。
/H:拷贝指定源文件(目录)中的所有文件(含隐藏文件和系统文件)。
/R:自动覆盖只读文件。
/T:仅复制子目录而不拷贝文件,但不包括源目录下无文件的空目录,否则,应指定/E选项。
/U:更新已经存在的文件。
/K:拷贝文件时,保持目标文件属性不变。不带此选项时,将会复位只读属性。
/N:使用短文件名(8.3格式,即主文件名8个字符,扩展名3个字符)进行拷贝,用于向不支持长文件名的操作系统(如低版本的DOS)进行文件拷贝。
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).
|
|
2003-6-2 00:00 |
|
|
yiyesong
元老会员
        
积分 1987
发帖 632
注册 2002-10-27
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
其实用DOS最主要的是多动手,没有人能能记住所有的DOS命令。你只要用HELP或者 /?都可以看到其常用用法。比如XCOPY /?,这是DOS下的通用方法。
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
|
|
2003-6-4 00:00 |
|
|
xierwa
初级用户
 
积分 175
发帖 15
注册 2003-6-7 来自 福建
状态 离线
|
|
2003-6-8 00:00 |
|
|
wj
初级用户
 
积分 109
发帖 3
注册 2003-6-9
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
以下是引用yiyesong在2003-6-4 4:08:26的发言:
其实用DOS最主要的是多动手,没有人能能记住所有的DOS命令。你只要用HELP或者 /?都可以看到其常用用法。比如XCOPY /?,这是DOS下的通用方法。
谢谢 又学一招
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
|
|
2003-6-9 00:00 |
|
|
x123
初级用户
 
积分 139
发帖 9
注册 2003-6-11
状态 离线
|
『第 7 楼』:
使用 LLM 解释/回答一下
在纯DOS下MS-DOS 6.22 XCOPY.EXE 無法拷貝隱藏檔系統檔須先改變欲拷貝的隱藏檔系統檔如AUTOEXEC.BAT IO.sys為非隱藏檔系統檔才能拷貝而xcopy32為windows所使用無法在純DOS下正常工作
設定屬性
ATTRIB
]
+ 設定屬性。
- 清除屬性。
R 唯讀檔案屬性。
A 保存檔案屬性。
S 系統檔案屬性。
H 隱藏檔案屬性。
指定一個或一個以上的檔案給 attrib 處理。
/S 處理目前的資料夾及所有子資料夾中相
符的檔案。
/D 一併處理資料夾。
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.
|
|
2003-6-11 00:00 |
|