China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-07-02 23:15
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Small problem with copying folders View 830 Replies 1
Original Poster Posted 2008-11-19 22:22 ·  中国 湖北 武汉 教育网
初级用户
Credits 68
Posts 25
Joined 2008-04-08 18:50
18-year member
UID 115283
Gender Male
Status Offline
xcopy file1 file2 /s
It keeps asking whether file2 is a filename or a directory.
After entering f, it asks again whether to overwrite yes/no/all.
I just want to copy the entire folder and give it another name. What's a simpler way to write it? There are a lot of files,
and I don't want it to keep asking. Thanks.
Floor 2 Posted 2008-11-20 08:54 ·  中国 河北 保定 联通
铂金会员
★★★★
网络独行侠
Credits 6,962
Posts 2,753
Joined 2003-04-16 00:00
23-year member
UID 1565
Gender Male
From 河北保定
Status Offline
xcopy dir1 dir2 /s /y /i

This is xcopy in the cmd environment. I don't know whether pure DOS has the /i parameter.
偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
Forum Jump: