![]() |
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 11:35 |
47,813 topics / 349,903 posts / today 1 new / 48,257 members |
| DOS疑难解答 & 问题讨论 (解答室) » Problems with xcopy copying the main directory |
| Printable Version 1,701 / 2 |
| Floor1 firstabc | Posted 2010-06-08 21:33 |
| 新手上路 Posts 10 Credits 15 | |
|
For example, I have an a01 folder under drive D:, with 01.txt and a 02 subfolder. I want to copy it to the temp directory under drive D: so that it results in d:\temp\a01 along with the subfolders and files inside.
I used the commands xcopy d:\a01 d:\temp /e and xcopy d:\a01 d:\temp /s, but only 01.txt and the 02 folder are copied, and the main folder a01 isn't copied. Please ask how to copy along with the a01 folder? |
|
| Floor2 firstabc | Posted 2010-06-08 21:56 |
| 新手上路 Posts 10 Credits 15 | |
|
By the way, I entered cmd by clicking [Start][Run] under the XP system. Is xcopy only usable in pure DOS?
|
|
| Floor3 firstabc | Posted 2010-06-08 23:49 |
| 新手上路 Posts 10 Credits 15 | |
|
There is someone who answered online, and the answer is as follows:
xcopy cannot directly achieve the function you want because it only recognizes the things under the specified directory and does not recognize the folder itself: It must be like this, adding the name of the target folder. xcopy d:\a01 d:\temp\a01 /e /s /i |
|
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |