![]() |
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-10 15:59 |
47,811 topics / 349,897 posts / today 0 new / 48,255 members |
| DOS疑难解答 & 问题讨论 (解答室) » [Help]How to open a folder copied under DOS in Windows? |
| Printable Version 2,669 / 6 |
| Floor1 27313071 | Posted 2004-04-17 00:00 |
| 初级用户 Posts 3 Credits 113 | |
|
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?
|
|
| Floor2 aria | Posted 2004-04-17 00:00 |
| 高级用户 Posts 243 Credits 924 | |
|
The COPY command can only copy files, it seems it can't copy subdirectories. You should use XCOPY or XXCOPY... and so on.
|
|
| Floor3 Climbing | Posted 2004-04-17 00:00 |
| 铂金会员 Posts 2,753 Credits 6,962 From 河北保定 | |
|
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 |
|
| Floor4 27313071 | Posted 2004-04-17 00:00 |
| 初级用户 Posts 3 Credits 113 | |
|
Oh, is that so? Then does that mean the data I backed up can't be recovered?
|
|
| Floor5 coolchy | Posted 2004-04-26 00:00 |
| 初级用户 Posts 2 Credits 112 | |
|
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 |
|
| Floor6 xiaojun | Posted 2004-04-26 00:00 |
| 银牌会员 Posts 499 Credits 2,202 | |
|
I think /i is better. No matter whether the directory exists or not, it always copies your files with subdirectories as a directory.
|
|
| Floor7 kriusrmrj | Posted 2004-07-11 00:00 |
| 初级用户 Posts 2 Credits 112 | |
|
Okay, I've also learned a trick
|
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |