|
27313071
初级用户
 
积分 113
发帖 3
注册 2004-4-17
状态 离线
|
『楼 主』:
[求助]dos下copy的文件夹在windows下怎么打开?
使用 LLM 解释/回答一下
最近系统崩溃,只能进dos把一些文件备份了
用copy c:\asd d:\a 命令.asd是一个文件夹,但是重装系统后发现d盘的a只是一个未注册文件,不是文件夹了.请问怎么办?
Recently, the system crashed, and I could only enter DOS to back up some files. I used the command `copy c:\asd d:\a`. Here, `asd` is a folder, but after reinstalling the system, I found that `d:\a` on the D drive is just an unregistered file, not a folder anymore. What should I do?
|
|
2004-4-17 00:00 |
|
|
aria
高级用户
   
积分 924
发帖 243
注册 2003-7-9
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
copy命令只能复制文件吧?好像不能复制子目录.
应该使用xcopy或xxcopy...等等
The COPY command can only copy files, it seems it can't copy subdirectories. You should use XCOPY or XXCOPY... and so on.
|
|
2004-4-17 00:00 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 3 楼』:
使用 LLM 解释/回答一下
原因是你原来的D盘没有一个a文件夹,所以copy命令将c:\asd目录下的所有文件合并到了一个a文件中。
正确的拷法应该是这样:
md d:\a
copy c:\asd d:\a
当然,用xcopy加/i参数就不必首先建立目标目录了。
xcopy /i c:\asd d:\a
The reason is that there was no a folder in your original D drive, so the copy command merged all the files in the c:\asd directory into one a file.
The correct way to copy is like this:
md d:\a
copy c:\asd d:\a
Of course, you don't need to create the target directory first if you use xcopy with the /i parameter.
xcopy /i c:\asd d:\a
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2004-4-17 00:00 |
|
|
27313071
初级用户
 
积分 113
发帖 3
注册 2004-4-17
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
哦 这样啊 那这么说我备份的资料没有办法恢复了?
Oh, is that so? Then does that mean the data I backed up can't be recovered?
|
|
2004-4-17 00:00 |
|
|
coolchy
初级用户
 
积分 112
发帖 2
注册 2004-4-25
状态 离线
|
『第 5 楼』:
使用 LLM 解释/回答一下
应该是用
md d:\a
xcopy c:\asd /s d:\a
这样asd文件夹下所有的非空子目录全部就考过去了
It should be using
md d:\a
xcopy c:\asd /s d:\a
In this way, all non-empty subdirectories under the asd folder are all copied over
|
|
2004-4-26 00:00 |
|
|
xiaojun
银牌会员
    
积分 2202
发帖 499
注册 2003-6-12
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
偶认为还是 /i 比较好,不管你目录存在与否,始终把你的文件带子目录,作为目录Copy过去
I think /i is better. No matter whether the directory exists or not, it always copies your files with subdirectories as a directory.
|

一年四季,枫叶红了又红;人生四季,失去的,还能再来吗?—— ! |
|
2004-4-26 00:00 |
|
|
kriusrmrj
初级用户
 
积分 112
发帖 2
注册 2004-7-4
状态 离线
|
|
2004-7-11 00:00 |
|