中国DOS联盟论坛

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-14 03:04
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS学习入门 & 精彩文章 (教学室) » How to move a directory and all its files under DOS
Printable Version  1,682 / 7
Floor1 小学生 Posted 2004-02-22 00:00
中级用户 Posts 31 Credits 204
If there is a folder named MP3 on drive D, how should I move it to drive C?
Floor2 小学生 Posted 2004-02-22 00:00
中级用户 Posts 31 Credits 204
This problem shouldn't be too difficult, right! Why is there no one to help me?
Floor3 MYS Posted 2004-02-22 00:00
元老会员 Posts 1,637 Credits 5,170 From 广东佛山
Use the MOVE command, or use NORTON COMMAND
Floor4 GOTOmsdos Posted 2004-02-22 00:00
铂金会员 Posts 1,827 Credits 5,154
move cannot move multi-level directory files.
If the MP3 folder has only files and no subdirectories, you can still use MOVE, but you cannot create a new directory during the move, so you need to create a new directory first, "md C:\mp3", then type "move d:\mp3\*.* c:\mp3"
If there are multi-level directories, you can only use xcopy, "xcopy d:\mp3 c:\mp3\ /s", then delete the source folder, "deltree /y d:\mp3"















Floor5 小学生 Posted 2004-02-22 00:00
中级用户 Posts 31 Credits 204
Okay, but I just don't understand why I can't create an MP3 directory on the C drive while moving, and I have to create another one? Also, I need to delete the empty MP3 folder on the D drive. Isn't this very troublesome?
Floor6 GOTOmsdos Posted 2004-02-22 00:00
铂金会员 Posts 1,827 Credits 5,154
The following is the speech of Primary School Student on 2004-2-22 11:48:09:
It's okay, but I just don't understand why I can't create an MP3 directory on the C drive while moving, and I have to create another one?


This may be a defect of the DOS MOVE source program. In this regard, the "move" in WINDOWS won't be like this.
Because I have to use "*.*" to move all files, so the directory name is not moved. There's no way.
However, we can't generally say that DOS is not as good as WINDOWS. DOS batch processing can complete various tasks in batches and personalized according to the editor's requirements, and managing the system with DOS is more in-depth. While for general users, WINDOWS is not as good.
Floor7 笑三笑 Posted 2004-09-12 00:00
初级用户 Posts 10 Credits 147
High
Floor8 dragon7788 Posted 2004-09-13 00:00
初级用户 Posts 27 Credits 168 From 广西
Not bad, worth learning~!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023