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-08-13 01:07
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [Help] How to copy a large number of long-filename files under DOS View 999 Replies 6
Original Poster Posted 2003-10-24 00:00 ·  中国 河北 唐山 中移铁通
初级用户
Credits 132
Posts 7
Joined 2003-08-18 00:00
22-year member
UID 8807
Gender Male
Status Offline
DOS 7.1,

After loading doslfn, I want to copy a directory on D:\, for example TENCENT, to c:\program files. That directory contains a large number of long-name subdirectories and long-name files. If I use xcopy, it doesn't support long filenames. If I use the COPY command, it's really too troublesome.

So I'd like to ask all the experts here, is there any method or software that can do this? (Writing a batch file would also be fine. How should it be written? Please tell me, brothers. I'd be extremely grateful!)


Floor 2 Posted 2003-10-24 00:00 ·  中国 河南 信阳 联通
元老会员
★★★★★
步行的人
Credits 9,654
Posts 3,351
Joined 2003-03-11 00:00
23-year member
UID 1113
Gender Male
From 湖北
Status Offline
Use file managers like vc, nc, pcdt, etc. . .
Do you have to do it from the command line?
弄花香满衣,掬水月在手。
明月鹭鸟飞, 芦花白马走。
我自一过后,野渡现横舟。
青云碧空在,净瓶水不流。
http://dos.e-stone.cn/guestbook/index.asp
======中國DOS聯盟=====
我的新网页http://rsds.7i24.com欢迎光顾
Floor 3 Posted 2003-10-24 00:00 ·  中国 河北 唐山 中移铁通
初级用户
Credits 132
Posts 7
Joined 2003-08-18 00:00
22-year member
UID 8807
Gender Male
Status Offline
If using the command line, is there software like that?
Also, I've heard that xclone from the new DOS era supports long filenames, but after I loaded doslfn and tried it, it didn't work.
For example:
c:\>xclone d:\tencent c:\progra~1\tencent
As a result, not only were all the long filenames changed to ones ending in ~1, but QQ was broken too. How can I make it support long filenames?
Floor 4 Posted 2003-10-24 00:00 ·  美国
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
XCLONE does support long filenames, but unfortunately when it runs it automatically checks whether Win9x is running. Only if it is will it use long filenames; otherwise it only uses short filenames.

If you want command-line XCOPY with long filename support, you can use the COPY /S command in 4DOS 7.5. For example:

4DOS /C COPY /S source folder target folder

That way, after the copy is finished, 4DOS will automatically exit.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 5 Posted 2003-10-25 00:00 ·  中国 辽宁 盘锦 联通
初级用户
Credits 143
Posts 9
Joined 2003-10-25 00:00
22-year member
UID 11882
Gender Male
Status Offline
The oldest old grandpa in the village told me that something like this had once happened in the jianghu too. Later, a young expert appeared, and this was how he solved it——————————————————copy *.*
Floor 6 Posted 2003-10-25 00:00 ·  中国 河北 唐山 联通
初级用户
Credits 132
Posts 7
Joined 2003-08-18 00:00
22-year member
UID 8807
Gender Male
Status Offline
Works great, thanks Wengier!


The following is quoted from E网飞鸿's post on 2003-10-25 12:07:51:
...Later, a young expert appeared, and this was how he solved it——————————————————copy*.*
The young man really is an expert. . .


Floor 7 Posted 2003-10-28 00:00 ·  中国 辽宁 盘锦 联通
初级用户
Credits 143
Posts 9
Joined 2003-10-25 00:00
22-year member
UID 11882
Gender Male
Status Offline
I'm flattered, I'm flattered, haha
Forum Jump: