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-06-29 11:49
中国DOS联盟论坛 » DOS疑难解答 & 问题讨论 (解答室) » Please tell me how to delete a long-named folder with spaces under DOS? View 1,402 Replies 8
Original Poster Posted 2005-11-24 16:55 ·  中国 湖南 长沙 电信
新手上路
Credits 8
Posts 2
Joined 2005-11-24 16:39
20-year member
UID 45848
Status Offline
When downloading with Thunder, I accidentally created a long folder with a space at the end. In XP, the source file cannot be read and cannot be deleted!

Please tell me how to delete a long - named folder with a space in DOS!

For example:
C:\91搞笑 V2.110 \New Folder
In DOS, it is displayed as: 91搞~2 110
Even if I use cd 91搞~2 110 or cd "91搞笑 V2.110", I can't enter this directory
It prompts that the file name is too long!
I can't even enter it, let alone delete it. It always prompts that the file name is too long

Which expert knows how to do it?
Floor 2 Posted 2005-11-24 17:23 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Try Deltree C:\9*.
Floor 3 Posted 2005-11-24 18:32 ·  中国 湖南 长沙 电信
新手上路
Credits 8
Posts 2
Joined 2005-11-24 16:39
20-year member
UID 45848
Status Offline
Tried it! Path not found!
Floor 4 Posted 2005-11-24 18:47 ·  中国 山东 济南 移动
钻石会员
★★★★★
Credits 10,046
Posts 3,039
Joined 2002-11-11 00:00
23-year member
UID 223
Gender Male
Status Offline
Check the disk.
简单就是美
Floor 5 Posted 2005-11-24 19:19 ·  中国 广东 广州 天河区 电信
金牌会员
★★★★
D◎$ Fαп
Credits 4,562
Posts 1,883
Joined 2004-01-19 00:00
22-year member
UID 15812
Gender Male
From 广东广州
Status Offline
Missed the decimal point:
cd 91搞~2.110
----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
Floor 6 Posted 2005-11-24 23:34 ·  中国 山西 临汾 联通
新手上路
Credits 10
Posts 3
Joined 2005-11-24 12:24
20-year member
UID 45831
Gender Male
Status Offline
Floor 7 Posted 2005-11-25 00:33 ·  中国 北京 大兴区 联通
初级用户
★★
Credits 185
Posts 82
Joined 2005-08-12 13:41
20-year member
UID 41586
Gender Male
Status Offline
Has long filename support been loaded? If not, you can only use `cd "91搞~2 110"` instead of `cd "91搞笑 V2.110"`.
Floor 8 Posted 2005-11-25 08:42 ·  中国 安徽 宿州 泗县 电信
银牌会员
★★★
Credits 1,339
Posts 595
Joined 2004-05-26 00:00
22-year member
UID 25306
Gender Male
From 安徽 宿州
Status Offline
Originally posted by nkc020 at 2005-11-24 06:32 PM:
Tried! Could not find the path!

Deltree is an external command. Do you have this external command?
Floor 9 Posted 2005-11-25 11:44 ·  中国 湖南 常德 电信
银牌会员
★★★
Credits 1,384
Posts 709
Joined 2005-10-29 22:22
20-year member
UID 44271
Status Offline
If XP cannot be deleted, it means the file has problems and cannot be deleted by ordinary methods. It is suggested to first perform a disk check
Forum Jump: