中国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-17 16:12
47,814 topics / 349,907 posts / today 4 new / 48,259 members
DOS疑难解答 & 问题讨论 (解答室) » Please tell me how to delete a long-named folder with spaces under DOS?
Printable Version  1,461 / 8
Floor1 nkc020 Posted 2005-11-24 16:55
新手上路 Posts 2 Credits 8
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?
Floor2 chujiafu Posted 2005-11-24 17:23
银牌会员 Posts 595 Credits 1,339 From 安徽 宿州
Try Deltree C:\9*.
Floor3 nkc020 Posted 2005-11-24 18:32
新手上路 Posts 2 Credits 8
Tried it! Path not found!
Floor4 Michael Posted 2005-11-24 18:47
钻石会员 Posts 3,041 Credits 10,056
Check the disk.
Floor5 JonePeng Posted 2005-11-24 19:19
金牌会员 Posts 1,883 Credits 4,562 From 广东广州
Missed the decimal point:
cd 91搞~2.110
Floor6 xlp2005 Posted 2005-11-24 23:34
新手上路 Posts 3 Credits 10
Floor7 floor Posted 2005-11-25 00:33
初级用户 Posts 82 Credits 185
Has long filename support been loaded? If not, you can only use `cd "91搞~2 110"` instead of `cd "91搞笑 V2.110"`.
Floor8 chujiafu Posted 2005-11-25 08:42
银牌会员 Posts 595 Credits 1,339 From 安徽 宿州
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?
Floor9 wl00560 Posted 2005-11-25 11:44
银牌会员 Posts 709 Credits 1,384
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
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023